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")