test
This commit is contained in:
parent
83d900dfa1
commit
fc253ec8cb
@ -9,17 +9,17 @@ import pathlib
|
|||||||
|
|
||||||
from .SpiceBotCore import SpiceBotCore_OBJ
|
from .SpiceBotCore import SpiceBotCore_OBJ
|
||||||
|
|
||||||
|
|
||||||
from sopel import plugin
|
from sopel import plugin
|
||||||
|
|
||||||
|
|
||||||
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)
|
SpiceBotCore_OBJ.script_dir = 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("%s" % SpiceBotCore_OBJ.script_dir)
|
bot.say(SpiceBotCore_OBJ.script_dir)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user