25 lines
530 B
Python
25 lines
530 B
Python
# coding=utf8
|
|
"""SpiceBotSERV
|
|
A Niche Wrapper around Sopel
|
|
"""
|
|
from __future__ import unicode_literals, absolute_import, division, print_function
|
|
|
|
import os
|
|
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
|
|
|
|
|
|
@plugin.nickname_command('test')
|
|
def test(bot, trigger):
|
|
bot.say("Testing the bot")
|
|
bot.say("Test #%s" % sbcore.increment)
|
|
|
|
sbcore.increment += 1
|