diff --git a/sopel_modules/SpiceBot/Events.py b/sopel_modules/SpiceBot/Events.py index 6b8afe4..a795e92 100644 --- a/sopel_modules/SpiceBot/Events.py +++ b/sopel_modules/SpiceBot/Events.py @@ -35,6 +35,7 @@ class BotEvents(object): def __init__(self): self.lock = threading.Lock() self.RPL_WELCOME = '001' # This is a defined IRC event + self.RPL_MYINFO = '004' # This is a defined IRC event self.RPL_ISUPPORT = '005' # This is a defined IRC event self.RPL_WHOREPLY = '352' # This is a defined IRC event self.RPL_NAMREPLY = '353' # This is a defined IRC event diff --git a/sopel_modules/SpiceBot_Core_Processing/Server.py b/sopel_modules/SpiceBot_Core_Processing/Server.py index c9678df..021d53c 100644 --- a/sopel_modules/SpiceBot_Core_Processing/Server.py +++ b/sopel_modules/SpiceBot_Core_Processing/Server.py @@ -18,3 +18,9 @@ def server_name(bot, trigger): @sopel.module.rule('.*') def parse_event_005(bot, trigger): SpiceBot.server.parse_reply_isupport(trigger) + + +@sopel.module.event(SpiceBot.events.RPL_MYINFO) +@sopel.module.rule('.*') +def parse_event_004(bot, trigger): + bot.osd(str(trigger), "#deathbybandaid")