test
This commit is contained in:
parent
e846ee35bb
commit
6b08b74f47
@ -0,0 +1 @@
|
||||
print("SpiceBotCore imported")
|
||||
@ -7,6 +7,10 @@ from __future__ import unicode_literals, absolute_import, division, print_functi
|
||||
import os
|
||||
import pathlib
|
||||
|
||||
from SpiceBotCore import SpiceBotCore_OBJ
|
||||
|
||||
from sopel import plugin
|
||||
|
||||
|
||||
"""
|
||||
`SCRIPT_DIR` is a very important variable to set early on.
|
||||
@ -17,4 +21,16 @@ SCRIPT_DIR = pathlib.Path(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
||||
|
||||
def setup(bot):
|
||||
print(SCRIPT_DIR)
|
||||
SpiceBotCore_OBJ.script_dir = SCRIPT_DIR
|
||||
print(SpiceBotCore_OBJ.script_dir)
|
||||
|
||||
SpiceBotCore_OBJ.test = "testing loading a class"
|
||||
|
||||
print(SpiceBotCore_OBJ.test)
|
||||
|
||||
|
||||
@plugin.command('test')
|
||||
def test(bot, trigger):
|
||||
bot.say("Testing the bot")
|
||||
bot.say("Loading SpiceBotCore from: %s" % SpiceBotCore_OBJ.script_dir)
|
||||
bot.say("Test String: %s" % SpiceBotCore_OBJ.test)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user