mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
more updates
This commit is contained in:
parent
0c2b1bc5e1
commit
65dcca14d2
@ -35,8 +35,9 @@ class BotEvents(object):
|
||||
def __init__(self):
|
||||
self.lock = threading.Lock()
|
||||
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_NAMREPLY = '353' # This is a defined IRC event
|
||||
self.BOT_UPTIME = time.time()
|
||||
self.BOT_WELCOME = '1001'
|
||||
self.BOT_READY = '1002'
|
||||
|
||||
@ -5,10 +5,12 @@ This is the SpiceBot OSD system.
|
||||
"""
|
||||
import sopel
|
||||
|
||||
import sopel_modules.SpiceBot as SpiceBot
|
||||
|
||||
@sopel.module.event('005')
|
||||
|
||||
@sopel.module.event(SpiceBot.events.RPL_ISUPPORT)
|
||||
@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':
|
||||
return
|
||||
parameters = trigger.args[1:-1]
|
||||
|
||||
@ -6,9 +6,12 @@ This is the SpiceBot OSD system.
|
||||
import sopel
|
||||
|
||||
|
||||
@sopel.module.event('005')
|
||||
import sopel_modules.SpiceBot as SpiceBot
|
||||
|
||||
|
||||
@sopel.module.event(SpiceBot.events.RPL_ISUPPORT)
|
||||
@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':
|
||||
return
|
||||
parameters = trigger.args[1:-1]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user