commit 52a96989a76d72e9f0c9508f65a4a959d63d8020
parent f376c735a56e052ae26f208c9df45968542d9d83
Author: hhvn <hayden@haydenvh.com>
Date: Tue, 2 Mar 2021 13:32:55 +0100
botreply: add help-text
Signed-off-by: mys <>
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/botreply b/botreply
@@ -54,6 +54,11 @@ case "$1" in
name=${name#:}
echo "$1" | awk -v "name=$name" -v "rot=$rot" '{print "PRIVMSG "$3" :"name": "rot}'
;;
+ *"PRIVMSG "*":$nick: help"|*"PRIVMSG "*":$nick, help")
+ echo "$nick: [<input-lang>:<output-lang>] <untranslated-text>"
+ echo "$nick: :morse <encoded-text|unencoded-text>"
+ echo "$nick: :rot<n> <text>"
+ ;;
*"PRIVMSG "*":$nick:"*|*"PRIVMSG "*":$nick,"*)
direction=$(echo "$1" | sed "/.*:$nick[,:] \([a-z]*\)-*[:>]\([a-z]*\) .*/!d;s//\1:\2/")
if [ -n "$direction" ];