SpiceBot/sopel_SpiceBot_Runtime_Nickname_Commands/__init__.py
deathbybandaid 2627fdb9ec test
2022-02-12 11:38:50 -05:00

44 lines
954 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("test c: %s" % trigger.raw)
@prerun_nickname_command()
@plugin.nickname_command('commands')
def sopel_commands(bot, trigger):
bot.say("testing commands")
bot.say(str(bot.rules._rules.values()))
@prerun_nickname_command()
@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_nickname_command()
@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))