This commit is contained in:
deathbybandaid 2022-02-09 13:09:44 -05:00
parent 2d3bd6f6e0
commit 7b79ebd4d6

View File

@ -10,21 +10,15 @@ import pathlib
from sopel import plugin from sopel import plugin
from SpiceBotCore import SpiceBotCore_OBJ 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__))) 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') @plugin.nickname_command('test')
def test(bot, trigger): def test(bot, trigger):
bot.say("Testing the bot") bot.say("Testing the bot")
bot.say("Attributes: %s" % [x for x in dir(bot.sbcore) if not x.startswith("__")]) bot.say("Attributes: %s" % [x for x in dir(sbcore) if not x.startswith("__")])
bot.say("Test #%s" % bot.sbcore.increment) bot.say("Test #%s" % sbcore.increment)
bot.sbcore.increment += 1 bot.sbcore.increment += 1