From 4dfda826c5532c3e5716652a160918054bc09c00 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Wed, 9 Feb 2022 13:13:19 -0500 Subject: [PATCH] test --- SpiceBot/SpiceBotCore/__init__.py | 5 ++++- SpiceBot/__init__.py | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/SpiceBot/SpiceBotCore/__init__.py b/SpiceBot/SpiceBotCore/__init__.py index 66eb7d0..7834f1d 100644 --- a/SpiceBot/SpiceBotCore/__init__.py +++ b/SpiceBot/SpiceBotCore/__init__.py @@ -3,7 +3,10 @@ class SpiceBotCore_OBJ(): def __init__(self): - print("here") self.script_dir = None self.increment = 1 self.bot = None + + def setup(self, script_dir, bot): + self.script_dir = script_dir + self.bot = bot diff --git a/SpiceBot/__init__.py b/SpiceBot/__init__.py index be30635..316419e 100644 --- a/SpiceBot/__init__.py +++ b/SpiceBot/__init__.py @@ -15,6 +15,10 @@ sbcore = SpiceBotCore_OBJ() SCRIPT_DIR = pathlib.Path(os.path.dirname(os.path.abspath(__file__))) +def setup(bot): + sbcore.setup(SCRIPT_DIR, bot) + + @plugin.nickname_command('test') def test(bot, trigger): bot.say("Testing the bot")