From 7b79ebd4d63c3c52a17300fb17d5f1fe908dbbc2 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Wed, 9 Feb 2022 13:09:44 -0500 Subject: [PATCH] test --- SpiceBot/__init__.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/SpiceBot/__init__.py b/SpiceBot/__init__.py index a80e6ad..51b8180 100644 --- a/SpiceBot/__init__.py +++ b/SpiceBot/__init__.py @@ -10,21 +10,15 @@ import pathlib from sopel import plugin from SpiceBotCore import SpiceBotCore_OBJ -print("Attributes: %s" % [x for x in dir(SpiceBotCore_OBJ) if not x.startswith("__")]) +sbcore = SpiceBotCore_OBJ() SCRIPT_DIR = pathlib.Path(os.path.dirname(os.path.abspath(__file__))) -def setup(bot): - bot.sbcore = SpiceBotCore_OBJ - print("Attributes: %s" % [x for x in dir(bot.sbcore) if not x.startswith("__")]) - bot.sbcore.increment = 1 - - @plugin.nickname_command('test') def test(bot, trigger): bot.say("Testing the bot") - bot.say("Attributes: %s" % [x for x in dir(bot.sbcore) if not x.startswith("__")]) - bot.say("Test #%s" % bot.sbcore.increment) + bot.say("Attributes: %s" % [x for x in dir(sbcore) if not x.startswith("__")]) + bot.say("Test #%s" % sbcore.increment) bot.sbcore.increment += 1