mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 06:59:53 -05:00
try this
This commit is contained in:
parent
ee0b071cd8
commit
bfbdd457f4
@ -33,12 +33,14 @@ class BotEvents(object):
|
|||||||
This allows you to do, for example, ``@module.event(botevents.BOT_WELCOME)``
|
This allows you to do, for example, ``@module.event(botevents.BOT_WELCOME)``
|
||||||
rather than ``@module.event('1001')``
|
rather than ``@module.event('1001')``
|
||||||
"""
|
"""
|
||||||
usednumbers = ['0', '1001', '1002', '1003', '1004']
|
|
||||||
|
|
||||||
BOT_WELCOME = '1001'
|
def __init__(self):
|
||||||
BOT_READY = '1002'
|
self.usednumbers = ['0', '1001', '1002', '1003', '1004']
|
||||||
BOT_CONNECTED = '1003'
|
|
||||||
BOT_LOADED = '1004'
|
self.BOT_WELCOME = '1001'
|
||||||
|
self.BOT_READY = '1002'
|
||||||
|
self.BOT_CONNECTED = '1003'
|
||||||
|
self.BOT_LOADED = '1004'
|
||||||
|
|
||||||
def __getattr__(self, attr):
|
def __getattr__(self, attr):
|
||||||
eventnumber = 0
|
eventnumber = 0
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user