show next scheduled dj

This commit is contained in:
Ben Harris 2020-06-22 20:32:42 -04:00
parent 161220bfeb
commit 135e47fc07
1 changed files with 5 additions and 1 deletions

6
bot.sh
View File

@ -178,7 +178,11 @@ do
;;
schedule)
msg "$from" "$schedule"
# get next scheduled streaming time
json=$(curl -s "https://radio.tildeverse.org/api/station/1/schedule?rows=1" | jq ".[]")
nextdj=$(jq -r .name <<< $json)
nexttime=$(jq -r .start <<< $json)
msg "$from" "$schedule: $nextdj will be on at $nexttime"
;;
help)