test
This commit is contained in:
parent
33c591ec5e
commit
d78c35f1df
@ -7,19 +7,19 @@ from __future__ import unicode_literals, absolute_import, division, print_functi
|
|||||||
import os
|
import os
|
||||||
import pathlib
|
import pathlib
|
||||||
|
|
||||||
from .SpiceBotCore import SpiceBotCore_OBJ
|
|
||||||
|
|
||||||
from sopel import plugin
|
from sopel import plugin
|
||||||
|
|
||||||
|
from .SpiceBotCore import SpiceBotCore_OBJ
|
||||||
|
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):
|
def setup(bot):
|
||||||
SpiceBotCore_OBJ.setup(SCRIPT_DIR, bot)
|
sbcore.setup = SCRIPT_DIR
|
||||||
|
|
||||||
|
|
||||||
@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(SpiceBotCore_OBJ.script_dir)
|
bot.say(sbcore.script_dir)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user