Add preliminary song marking support. - annna - Annna the nice friendly bot.
(HTM) git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
---
(DIR) commit 6527e25f91eb4aa2ac91da5bafc020c786f99983
(DIR) parent 6015441240793efa25ce81bc7c1e02ba17f05084
(HTM) Author: Annna Robert-Houdin <annna@bitreich.org>
Date: Fri, 24 Dec 2021 12:51:20 +0100
Add preliminary song marking support.
Diffstat:
M annna-message-radio | 5 +++++
1 file changed, 5 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/annna-message-radio b/annna-message-radio
@@ -15,6 +15,11 @@ case "${text}" in
annna-say -c "${channel}" "You are very kind ${user}. To your command."
exit # no common messages
;;
+"${botname}, please mark this.")
+ songtitle="$(/br/bin/bitreich-radio-playlist-mark)"
+ annna-say -c "${channel}" "${user}, I have marked \"${songtitle}\" for you."
+ exit
+ ;;
"${botname}, please help.")
annna-say -c "${user}" "»next please.« gets the playlist further, ${user}."
annna-say -c "${user}" "»please help.« gives you this help listing, ${user}."