32 lines
689 B
Python
32 lines
689 B
Python
# coding=utf8
|
|
"""SpiceBot
|
|
A Niche Wrapper around Sopel
|
|
"""
|
|
from __future__ import unicode_literals, absolute_import, division, print_function
|
|
|
|
import os
|
|
import pathlib
|
|
|
|
from sopel import plugin
|
|
|
|
from .SBCore import SpiceBotCore_OBJ
|
|
from .SBCore.prerun import prerun
|
|
|
|
SCRIPT_DIR = pathlib.Path(os.path.dirname(os.path.abspath(__file__)))
|
|
|
|
sb = SpiceBotCore_OBJ(SCRIPT_DIR)
|
|
|
|
|
|
def setup(bot):
|
|
sb.setup(bot)
|
|
|
|
|
|
@prerun(sb, 'nickname')
|
|
@plugin.nickname_command('test')
|
|
def sb_nickname_command(bot, trigger):
|
|
bot.say("Testing the bot")
|
|
bot.say("Attributes: %s" % [x for x in dir(sb) if not x.startswith("__")])
|
|
bot.say("%s" % sb.versions.dict)
|
|
|
|
sb.osd("test", trigger.sender)
|