commit 5b9e5f4d64640088c2ee10d9110165aa7d5ceb28
parent 2181aa718261264da0f6ad021ac22cb023c25cf0
Author: noodle <noodle@pastanoggin.com>
Date: Sun, 15 Jun 2025 04:59:28 +0300
add a response for wb/welcome back
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/mata_bot.pl b/mata_bot.pl
@@ -105,12 +105,11 @@ sub respond_command {
} elsif ($content =~ /\?$/) {
# we got a question
msg($sock, "$ball[int rand($ball_num)] ${MATA_CUTE}");
- } elsif ($content =~ /^good *(bo[tyi]|girl)\W*$/i) {
- # we got a compliment
+ } elsif ($content =~ /^((good *(bo[tyi]|girl))|w(elcome)? *b(ack)?)\W*$/i) {
if ($sender_nick eq $MOTHER) {
msg($sock, "Thank you, mother! ${MATA_HAPPY}");
} else {
- msg($sock, "Thanks! ${MATA_HAPPY}");
+ msg($sock, "Thanks, ${sender_nick}! ${MATA_HAPPY}");
}
} elsif ($content =~ /^bru[hv]\W*$/i) {
msg($sock, "Did i stutter? ${MATA_NORM}");