SpiceBot/sopel_SpiceBotCore/__init__.py
deathbybandaid 09ab9b0d88 test
2022-02-10 09:33:44 -05:00

30 lines
631 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
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)