mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
Test
This commit is contained in:
parent
3a0ef8ae9d
commit
a1a44584e6
@ -9,7 +9,7 @@ from sopel.trigger import PreTrigger
|
||||
from sopel_modules.SpiceBot_SBTools import bot_logging
|
||||
|
||||
|
||||
class botevents(object):
|
||||
class BotEvents(object):
|
||||
"""An dynamic listing of all the notable Bot numeric events.
|
||||
|
||||
Events contained in this module will utilize the 1000-range
|
||||
@ -23,6 +23,10 @@ class botevents(object):
|
||||
|
||||
def __init__(self, usednumbers):
|
||||
self.usednumbers = [0, 1001, 1002, 1003, 1004, 2000]
|
||||
self.BOT_WELCOME = '1001'
|
||||
self.BOT_READY = '1002'
|
||||
self.BOT_CONNECTED = '1003'
|
||||
self.BOT_LOADED = '1004'
|
||||
|
||||
# usednumbers = [0, 1001, 1002, 1003, 1004, 2000]
|
||||
# BOT_WELCOME = '1001'
|
||||
@ -37,6 +41,9 @@ class botevents(object):
|
||||
setattr(self, str(attr).upper(), str(eventnumber))
|
||||
|
||||
|
||||
botevents = BotEvents()
|
||||
|
||||
|
||||
def setup(bot):
|
||||
bot_logging(bot, 'SpiceBot_Events', "Starting setup procedure")
|
||||
bot_events_setup_check(bot)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user