more updates

This commit is contained in:
deathbybandaid 2019-07-04 08:32:56 -04:00
parent 0c2b1bc5e1
commit 65dcca14d2
3 changed files with 11 additions and 5 deletions

View File

@ -35,8 +35,9 @@ class BotEvents(object):
def __init__(self): def __init__(self):
self.lock = threading.Lock() self.lock = threading.Lock()
self.RPL_WELCOME = '001' # This is a defined IRC event self.RPL_WELCOME = '001' # This is a defined IRC event
self.RPL_NAMREPLY = '353' # 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_WHOREPLY = '352' # This is a defined IRC event
self.RPL_NAMREPLY = '353' # This is a defined IRC event
self.BOT_UPTIME = time.time() self.BOT_UPTIME = time.time()
self.BOT_WELCOME = '1001' self.BOT_WELCOME = '1001'
self.BOT_READY = '1002' self.BOT_READY = '1002'

View File

@ -5,10 +5,12 @@ This is the SpiceBot OSD system.
""" """
import sopel import sopel
import sopel_modules.SpiceBot as SpiceBot
@sopel.module.event('005')
@sopel.module.event(SpiceBot.events.RPL_ISUPPORT)
@sopel.module.rule('.*') @sopel.module.rule('.*')
def parse_event_005(bot, trigger): def parse_event_005_kick(bot, trigger):
if trigger.args[-1] != 'are supported by this server': if trigger.args[-1] != 'are supported by this server':
return return
parameters = trigger.args[1:-1] parameters = trigger.args[1:-1]

View File

@ -6,9 +6,12 @@ This is the SpiceBot OSD system.
import sopel import sopel
@sopel.module.event('005') import sopel_modules.SpiceBot as SpiceBot
@sopel.module.event(SpiceBot.events.RPL_ISUPPORT)
@sopel.module.rule('.*') @sopel.module.rule('.*')
def parse_event_005(bot, trigger): def parse_event_005_osd(bot, trigger):
if trigger.args[-1] != 'are supported by this server': if trigger.args[-1] != 'are supported by this server':
return return
parameters = trigger.args[1:-1] parameters = trigger.args[1:-1]