fix PONG and update notify_channels

This commit is contained in:
Ben Harris 2020-06-17 11:49:34 -04:00
parent 7ae1f26cb6
commit 7d449deb38
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@ server="localhost"
port="6667"
npfile="now_playing.txt"
channel="tilderadio"
notify_channels="meta team yourtilde club tildetel envs $channel"
notify_channels="meta team club $channel"
link="https://tilderadio.org/listen"
schedule="https://tilderadio.org/schedule/"
source="https://tildegit.org/ben/radiobot"

4
bot.sh
View File

@ -11,7 +11,7 @@ dj=$(parse_dj)
printf "Starting session: %s\n" "$(date "+[%y:%m:%d %T]")" > $log
function send {
printf "> %s\n" "$1" >> $log
printf "> %s: %s\n" "$(date "+[%y:%m:%d %T]")" "$1" >> $log
printf "%s\r\n" "$1" >> $input
}
@ -73,7 +73,7 @@ do
case "$line" in
# respond to ping requests from the server
PING*)
msg "$(printf %s "$line" | sed "s/I/O/")"
send "$(printf %s "$line" | sed "s/I/O/")"
;;
# make sure we're joined