From 76bb39221bae1371f5ba699fa4828c95204fc748 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Wed, 9 Feb 2022 12:43:49 -0500 Subject: [PATCH] test --- SpiceBot/__init__.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/SpiceBot/__init__.py b/SpiceBot/__init__.py index b2bccd2..a8dd193 100644 --- a/SpiceBot/__init__.py +++ b/SpiceBot/__init__.py @@ -10,15 +10,13 @@ import pathlib from sopel import plugin from .SpiceBotCore import SpiceBotCore_OBJ +sbcore = SpiceBotCore_OBJ SCRIPT_DIR = pathlib.Path(os.path.dirname(os.path.abspath(__file__))) - - -def setup(bot): - SpiceBotCore_OBJ.setup(SCRIPT_DIR, bot) +sbcore.script_dir = SCRIPT_DIR @plugin.nickname_command('test') def test(bot, trigger): bot.say("Testing the bot") - bot.say("%s" % SpiceBotCore_OBJ.script_dir) + bot.say("%s" % sbcore.script_dir)