# 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 SCRIPT_DIR = pathlib.Path(os.path.dirname(os.path.abspath(__file__))) sb = SpiceBotCore_OBJ(SCRIPT_DIR) def setup(bot): sb.setup(bot) @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)