test without hardcoded values

This commit is contained in:
deathbybandaid 2019-05-14 20:11:56 -04:00
parent 44dcac93d5
commit 3a0ef8ae9d

View File

@ -21,12 +21,14 @@ class botevents(object):
rather than ``@module.event('1001')`` rather than ``@module.event('1001')``
""" """
usednumbers = [0, 1001, 1002, 1003, 1004, 2000] def __init__(self, usednumbers):
self.usednumbers = [0, 1001, 1002, 1003, 1004, 2000]
BOT_WELCOME = '1001' # usednumbers = [0, 1001, 1002, 1003, 1004, 2000]
BOT_READY = '1002' # BOT_WELCOME = '1001'
BOT_CONNECTED = '1003' # BOT_READY = '1002'
BOT_LOADED = '1004' # BOT_CONNECTED = '1003'
# BOT_LOADED = '1004'
def __getattr__(self, attr): def __getattr__(self, attr):
''' will only get called for undefined attributes ''' ''' will only get called for undefined attributes '''