From d74def3acfd7b36ea175bf2493839711b2afce3e Mon Sep 17 00:00:00 2001 From: 9pfs <9pfs@amcforum.wiki> Date: Sun, 5 Nov 2023 04:12:52 +0000 Subject: [PATCH] Add a funny easter egg (#4) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ``` 08:57:34 PM <~Firepup> reboot fire 08:57:34 PM *** FireBot (firebot@firebot.firepi) has quit ("Rebooting") 08:57:38 PM <~Firepup> Can't hurt to be safe 08:57:49 PM * ~Firepup looks at h|thelounge 08:58:03 PM * h|thelounge looks at Firepup 08:58:09 PM *** FireBot (firebot@firebot.firepi) has joined the channel 08:58:19 PM <~Firepup> Bugs bugs bugs 08:58:34 PM * h|thelounge starts working on a PR 08:58:40 PM <~firepup|lounge> 👀 08:58:45 PM <~firepup|lounge> For? 08:58:58 PM A surprise :) ``` Reviewed-on: https://git.amcforum.wiki/Firepup650/fire-ircbot/pulls/4 Reviewed-by: Firepup Sixfifty Co-authored-by: 9pfs <9pfs@amcforum.wiki> Co-committed-by: 9pfs <9pfs@amcforum.wiki> --- ircbot.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ircbot.py b/ircbot.py index c43ca14..a9d0afa 100644 --- a/ircbot.py +++ b/ircbot.py @@ -326,6 +326,12 @@ def main(): False, ): sendmsg(f"Hi! I'm FireBot (https://git.amcforum.wiki/Firepup650/fire-ircbot)! My admins on this server are {adminnames}.", chan) + if mfind( + message.lower(), + ["bugs bugs bugs"], + False, + ): + sendmsg(f"\x01ACTION realizes {name} looks like a bug, and squashes {name}\x01", chan) if mfind( message.lower(), [f"hi {botnick.lower()}", f"hello {botnick.lower()}"],