show next scheduled dj
This commit is contained in:
parent
161220bfeb
commit
135e47fc07
6
bot.sh
6
bot.sh
|
@ -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)
|
||||
|
|
Reference in New Issue