Fix annna-say for help. - annna - Annna the nice friendly bot. | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit 821f4a797dd7867fe0700edd8f5ae400706ab632 | |
parent 91d7263c59e0d51a0dcc2ddd6a6377fad91b6267 | |
Author: Annna Robert-Houdin <[email protected]> | |
Date: Sat, 28 Apr 2018 16:33:19 +0200 | |
Fix annna-say for help. | |
* Add more gunther cases. | |
* Add more cloudflare cases. | |
* Fix punctuation in commands. | |
Diffstat: | |
M annna-say | 2 +- | |
M annna-start-services | 16 ++++++++-------- | |
2 files changed, 9 insertions(+), 9 deletions(-) | |
--- | |
diff --git a/annna-say b/annna-say | |
@@ -44,7 +44,7 @@ do | |
printf "%s\n" "$@" > "${ircpath}/in" | |
else | |
# Might be a user. | |
- printf "/j %s %s\n" "$channel" "$@" > "${iibase}/in" | |
+ printf "/j %s %s\n" "$c" "$@" > "${ircbase}/in" | |
fi | |
done | |
diff --git a/annna-start-services b/annna-start-services | |
@@ -48,17 +48,17 @@ then | |
[ "$user" = "${botname}" ] && continue | |
- if [ "${text}" = "${botname}, next please" ]; | |
+ if [ "${text}" = "${botname}, next please." ]; | |
then | |
/br/bin/bitreich-radio-playlist-next | |
annna-say -c "#bitreich-radio" "You are very kind ${us… | |
continue; | |
fi | |
- if [ "${text}" = "${botname}, please help" ]; | |
+ if [ "${text}" = "${botname}, please help." ]; | |
then | |
- annna-say -c "${user}" "»next please« gets the playl… | |
- annna-say -c "${user}" "»please help« gives you this… | |
+ annna-say -c "${user}" "»next please.« gets the play… | |
+ annna-say -c "${user}" "»please help.« gives you thi… | |
continue; | |
fi | |
done | |
@@ -94,10 +94,10 @@ then | |
if [ -n "$urititle" ]; | |
then | |
case "${urititle}" in | |
- *Gunther*) | |
+ *Gunther*|*GUNTHER*|*Günther*) | |
annna-say -c "#bitreich-en" "O… | |
;; | |
- *Attention\ Required\!\ \|\ Cloudflare… | |
+ *\|\ Cloudflare*) | |
annna-say -c "#bitreich-en" "W… | |
;; | |
*) | |
@@ -294,7 +294,7 @@ then | |
annna-say -c "#bitreich-en" "$outtext" | |
fi | |
- if [ "${text}" = "${botname}, please help" ]; | |
+ if [ "${text}" = "${botname}, please help." ]; | |
then | |
# TODO: Add multiple line support to annna-say -c(1) w… | |
annna-say -c "${user}" "»can you show me the uptime p… | |
@@ -325,7 +325,7 @@ then | |
sleep 0.5 | |
annna-say -c "${user}" "», what is \$term?«, ${user}… | |
sleep 0.5 | |
- annna-say -c "${user}" "»please help« gives you this… | |
+ annna-say -c "${user}" "»please help.« gives you thi… | |
continue; | |
fi | |
done |