]> git.aero2k.de Git - urlbot-v3.git/commitdiff
fix bug.
authorThorsten <mail@aero2k.de>
Fri, 12 Jul 2024 18:34:24 +0000 (20:34 +0200)
committerThorsten <mail@aero2k.de>
Fri, 12 Jul 2024 19:24:09 +0000 (21:24 +0200)
src/distbot/plugins/fun.py

index 7b468b2d6f400a88d7e9350e69904db3872cd9d3..ace08689a32d39e4d5c7f0a3fcf11fb0fd0d62f3 100644 (file)
@@ -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: