add date alias to time command
This commit is contained in:
parent
135e47fc07
commit
59a2da03eb
10
bot.sh
10
bot.sh
|
@ -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)
|
||||
|
|
Reference in New Issue