SpiceBot/sopel_SpiceBot_Runtime_Commands/__init__.py
deathbybandaid 3ad24c1318 test
2022-02-10 14:04:53 -05:00

39 lines
898 B
Python

from sopel import plugin
from sopel_SpiceBot_Core_1 import sb
from sopel_SpiceBot_Core_Prerun import prerun_nickname_command
@prerun_nickname_command()
@plugin.nickname_command('test')
def sb_test_commands(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)
@prerun_nickname_command()
@plugin.nickname_command('commands')
def sopel_commands(bot, trigger):
bot.say(str(sb.commands.sopel_commands))
@prerun_nickname_command()
@plugin.nickname_command('nickname_commands')
def sopel_nickname_commands(bot, trigger):
bot.say(str(sb.commands.sopel_nickname_commands))
@prerun_nickname_command()
@plugin.nickname_command('actio_commands')
def sopel_action_commands(bot, trigger):
bot.say(str(sb.commands.action_nickname_commands))