forked from tilderadio/radiobot
this should fix dj empty string
This commit is contained in:
parent
9f5ac054ef
commit
471c98fec8
3
bot.sh
3
bot.sh
|
@ -28,8 +28,7 @@ do
|
|||
echo -e "PRIVMSG #tilderadio :\x0303$now_playing" >> $input
|
||||
fi
|
||||
|
||||
if [[ $dj != $(parse_dj) ]]; then
|
||||
[ -z ${dj+x} ] && continue
|
||||
if [[ $dj != $(parse_dj) ]] && [[ ! -z ${dj+x} ]]; then
|
||||
dj=$(parse_dj)
|
||||
echo "PRIVMSG #tilderadio :$dj is now online!" >> $input
|
||||
TOOT_JSON_PATH=. toot "dj $dj is now streaming live at https://tilderadio.org!"
|
||||
|
|
Loading…
Reference in New Issue