another fix for auto message
authorGeorgios Atheridis <atheridis@tutamail.com>
Mon, 2 May 2022 18:08:41 +0000 (18:08 +0000)
committerGeorgios Atheridis <atheridis@tutamail.com>
Mon, 2 May 2022 18:08:41 +0000 (18:08 +0000)
skgyorugo/analyze_auto_message.py

index f0566643d36091e1106e5e3d69b72ba6c0aa51b8..470c4af2194d86f3eafea0eb72fb88606cda685a 100644 (file)
@@ -47,9 +47,11 @@ def do_auto_message(bot: Bot, message: Message, auto_message_modules: dict):
             continue
         if value:
             tools.smart_privmsg.send(bot, message, value)
+            break
         else:
             try:
                 auto_message_modules[name].main(bot, message)
+                break
             except KeyError:
                 c.execute(
                     """