forked from tilderadio/radiobot
fix PONG and update notify_channels
This commit is contained in:
parent
7ae1f26cb6
commit
7d449deb38
|
@ -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
4
bot.sh
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue