add time command

This commit is contained in:
Ben Harris 2019-02-17 15:05:21 -05:00
parent df4cc49255
commit d8664580f4
2 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,6 @@
server="localhost"
port="6667"
npfile="/home/ben/public_html/radio/now_playing.txt"
npfile="now_playing.txt"
channel="tilderadio"
nick="radiobot"
user="radiobot tilderadio radiobot :radiobot"

4
bot.sh
View File

@ -98,6 +98,10 @@ do
echo "PRIVMSG $from :i'll stop sending you updates." >> $input
;;
time)
echo "PRIVMSG $from :$(TZ=UTC date)" >> $input
;;
np)
echo "PRIVMSG $from :$now_playing" >> $input
;;