From 1008c116f66acf3d22bb49650b65d63e58a31ce2 Mon Sep 17 00:00:00 2001 From: Michael De Roover Date: Sun, 9 May 2021 09:11:45 +0200 Subject: [PATCH] Replace hiya with konata say x --- konata.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/konata.sh b/konata.sh index 7524a2d..3464841 100755 --- a/konata.sh +++ b/konata.sh @@ -325,8 +325,10 @@ tag(){ Message contents: $text" } -hiya(){ - sendmsg "Hiya! :3" +say(){ + args + res=$(echo ${args[*]} | cut -d' ' -f2-) + sendmsg "$res" } # Match incoming messages @@ -358,5 +360,5 @@ esac case "$msg" in # Miscellaneous *@ghnou*) tag ;; - *Konata*) hiya ;; + Konata\ say*) say ;; esac