test
This commit is contained in:
parent
c6c8db5bc4
commit
4dfda826c5
@ -3,7 +3,10 @@
|
|||||||
class SpiceBotCore_OBJ():
|
class SpiceBotCore_OBJ():
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
print("here")
|
|
||||||
self.script_dir = None
|
self.script_dir = None
|
||||||
self.increment = 1
|
self.increment = 1
|
||||||
self.bot = None
|
self.bot = None
|
||||||
|
|
||||||
|
def setup(self, script_dir, bot):
|
||||||
|
self.script_dir = script_dir
|
||||||
|
self.bot = bot
|
||||||
|
|||||||
@ -15,6 +15,10 @@ 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):
|
||||||
|
sbcore.setup(SCRIPT_DIR, bot)
|
||||||
|
|
||||||
|
|
||||||
@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")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user