SpiceBot/sopel_SpiceBot_Runtime_Nickname_Commands/__init__.py
deathbybandaid 64beeec8fc test
2022-02-12 14:49:48 -05:00

44 lines
861 B
Python

from sopel import plugin
from sopel_SpiceBot_Core_1 import sb
from sopel_SpiceBot_Core_Prerun import prerun
@prerun()
@plugin.nickname_command('test')
def sb_test_commands(bot, trigger):
bot.say("%s" % trigger.raw)
@prerun()
@plugin.nickname_command('commands')
def sopel_commands(bot, trigger):
bot.say("testing commands")
bot.say(str(bot.rules._rules.values()))
@prerun()
@plugin.nickname_command('nickname_commands')
def sopel_nickname_commands(bot, trigger):
bot.say("testing nickname_commands")
for x in sb.commands.sopel_nickname_commands:
for y in x:
bot.say(str(y))
@prerun()
@plugin.nickname_command('action_commands')
def sopel_action_commands(bot, trigger):
bot.say("testing action_commands")
for x in sb.commands.sopel_action_commands:
for y in x:
bot.say(str(y))