From 9110d101039c0fb3633e8db1e28f373fc01f9deb Mon Sep 17 00:00:00 2001 From: Thorsten Date: Fri, 12 Jul 2024 20:34:24 +0200 Subject: [PATCH] fix bug. --- src/distbot/plugins/fun.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/distbot/plugins/fun.py b/src/distbot/plugins/fun.py index 7b468b2..ace0868 100644 --- a/src/distbot/plugins/fun.py +++ b/src/distbot/plugins/fun.py @@ -61,6 +61,8 @@ class Slap(Worker): sender = get_nick_from_message(msg) w = get_words(msg) verb = w[0] + 's' + if verb not in ("hugs", "slaps"): + return Action(msg=f"/me slaps {sender}.") if len(w) > 1: subject = " ".join(w[1:]) else: -- 2.39.2