this should fix dj empty string

This commit is contained in:
Ben Harris 2018-10-26 22:08:28 -04:00
parent 9f5ac054ef
commit 471c98fec8
Signed by untrusted user: ben
GPG Key ID: 4E0AF802FFF7960C
1 changed files with 1 additions and 2 deletions

3
bot.sh
View File

@ -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!"