From bfbdd457f4b25d703d27090e325d7925dff785d2 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Tue, 14 May 2019 16:21:47 -0400 Subject: [PATCH] try this --- 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 c0cd567..4b1fdd6 100644 --- a/sopel_modules/SpiceBot_Events/System.py +++ b/sopel_modules/SpiceBot_Events/System.py @@ -33,12 +33,14 @@ class BotEvents(object): This allows you to do, for example, ``@module.event(botevents.BOT_WELCOME)`` rather than ``@module.event('1001')`` """ - usednumbers = ['0', '1001', '1002', '1003', '1004'] - BOT_WELCOME = '1001' - BOT_READY = '1002' - BOT_CONNECTED = '1003' - BOT_LOADED = '1004' + def __init__(self): + self.usednumbers = ['0', '1001', '1002', '1003', '1004'] + + self.BOT_WELCOME = '1001' + self.BOT_READY = '1002' + self.BOT_CONNECTED = '1003' + self.BOT_LOADED = '1004' def __getattr__(self, attr): eventnumber = 0