From d8664580f492ef3b8bf561acc01f2db73e9d5b1a Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Sun, 17 Feb 2019 15:05:21 -0500 Subject: [PATCH] add time command --- bot.properties | 2 +- bot.sh | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bot.properties b/bot.properties index 8ec175d..e8540ad 100644 --- a/bot.properties +++ b/bot.properties @@ -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" diff --git a/bot.sh b/bot.sh index e903b3e..0f3eb43 100644 --- a/bot.sh +++ b/bot.sh @@ -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 ;;