test
This commit is contained in:
parent
b375d463a3
commit
d56758e11e
@ -6,6 +6,3 @@ class SpiceBotCore_OBJ():
|
||||
self.script_dir = None
|
||||
self.increment = 1
|
||||
self.bot = None
|
||||
|
||||
def setup(self, script_dir, bot):
|
||||
self.script_dir = script_dir
|
||||
|
||||
@ -10,15 +10,17 @@ 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__)))
|
||||
sbcore.script_dir = SCRIPT_DIR
|
||||
|
||||
|
||||
def setup(bot):
|
||||
bot.sbcore = SpiceBotCore_OBJ
|
||||
|
||||
|
||||
@plugin.nickname_command('test')
|
||||
def test(bot, trigger):
|
||||
bot.say("Testing the bot")
|
||||
bot.say("Test #%s" % sbcore.increment)
|
||||
bot.say("Test #%s" % bot.sbcore.increment)
|
||||
|
||||
sbcore.increment += 1
|
||||
bot.sbcore.increment += 1
|
||||
|
||||
Loading…
Reference in New Issue
Block a user