From 3a0ef8ae9d057a5a305ee16d854f16c2a677880f Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Tue, 14 May 2019 20:11:56 -0400 Subject: [PATCH] test without hardcoded values --- sopel_modules/SpiceBot_Events/System.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/sopel_modules/SpiceBot_Events/System.py b/sopel_modules/SpiceBot_Events/System.py index 5ea3969..c452fd4 100644 --- a/sopel_modules/SpiceBot_Events/System.py +++ b/sopel_modules/SpiceBot_Events/System.py @@ -21,12 +21,14 @@ class botevents(object): 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' - BOT_READY = '1002' - BOT_CONNECTED = '1003' - BOT_LOADED = '1004' + # usednumbers = [0, 1001, 1002, 1003, 1004, 2000] + # BOT_WELCOME = '1001' + # BOT_READY = '1002' + # BOT_CONNECTED = '1003' + # BOT_LOADED = '1004' def __getattr__(self, attr): ''' will only get called for undefined attributes '''