Add a nice idea of parazyd with menu type support. - annna - Annna the nice fri… | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit e488390589d91d7b15bb26922ed041b958d4eaa5 | |
parent a69cbe4d58fb20e13e1c11d868562622f35b203a | |
Author: Annna Robert-Houdin <[email protected]> | |
Date: Tue, 3 Apr 2018 19:10:46 +0200 | |
Add a nice idea of parazyd with menu type support. | |
Diffstat: | |
M annna-start-services | 20 ++++++++++++++++++++ | |
1 file changed, 20 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/annna-start-services b/annna-start-services | |
@@ -188,6 +188,26 @@ then | |
continue; | |
fi | |
+ if [ "${text}" = "${botname}, I'm bored." ]; | |
+ then | |
+ randomlink="$(/br/bin/bitreich-lawn-random-link)" | |
+ linktype="$(printf "%s\n" "${randomlink}" | cut -d '|'… | |
+ linktext="$(printf "%s\n" "${randomlink}" | cut -d '|'… | |
+ linksel="$(printf "%s\n" "${randomlink}" | cut -d '|' … | |
+ linkserver="$(printf "%s\n" "${randomlink}" | cut -d '… | |
+ linkport="$(printf "%s\n" "${randomlink}" | cut -d '|'… | |
+ outtext="$(printf "%s - gopher://%s" "$linktext" "$lin… | |
+ if [ "$linkport" != "70" -a "$linkport" != "port" ]; | |
+ then | |
+ outtext="$(printf "%s:%s" "$outtext" "$linkpor… | |
+ fi | |
+ if [ -n "$linksel" ]; | |
+ then | |
+ outtext="$(printf "%s/%s%s" "$outtext" "$linkt… | |
+ fi | |
+ annna-say -c "#bitreich-en" "$outtext" | |
+ fi | |
+ | |
if [ "${text}" = "${botname}, please help" ]; | |
then | |
# TODO: Add multiple line support to annna-say -c(1) w… |