add date alias to time command

This commit is contained in:
Ben Harris 2020-06-22 20:46:21 -04:00
parent 135e47fc07
commit 59a2da03eb
1 changed files with 5 additions and 5 deletions

10
bot.sh
View File

@ -157,8 +157,8 @@ do
msg "$from" "i'll stop sending you email updates."
;;
time)
msg "$from" "$(TZ=UTC date)"
time|date|now)
msg "$from" "UTC time is currently $(TZ=UTC date)"
;;
np)
@ -180,13 +180,13 @@ do
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)
nextdj=$(jq -r .name <<< "$json")
nexttime=$(jq -r .start <<< "$json")
msg "$from" "$schedule: $nextdj will be on at $nexttime"
;;
help)
msg "$from" "hey hi, my commands are np, dj, link, slogan, schedule, [un]subscribe, email-[un]subscribe. please provide an address when subscribing via email."
msg "$from" "hey hi, my commands are np, dj, link, slogan, schedule, time, [un]subscribe, email-[un]subscribe. please provide an address when subscribing via email."
;;
radio|slogan)