test
This commit is contained in:
parent
2d3bd6f6e0
commit
7b79ebd4d6
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user