45 lines
1.1 KiB
Python
45 lines
1.1 KiB
Python
|
|
from sopel import plugin
|
|
|
|
from sopel_SpiceBot_Core_1 import sb
|
|
|
|
from sopel_SpiceBot_Core_Prerun import sbprerun
|
|
|
|
|
|
@sbprerun()
|
|
@plugin.nickname_command('test')
|
|
def sb_test_commands(bot, trigger, comrun):
|
|
bot.say("%s" % trigger.raw)
|
|
|
|
|
|
@plugin.nickname_command('plugins')
|
|
def sb_test_command_groups(bot, trigger, comrun):
|
|
for bplugin in list(bot._plugins.keys()):
|
|
sb.osd(str(bot._plugins[bplugin].get_meta_description()), trigger.sender)
|
|
|
|
|
|
@sbprerun()
|
|
@plugin.nickname_command('commands')
|
|
def sopel_commands(bot, trigger, comrun):
|
|
|
|
bot.say("testing commands")
|
|
|
|
sb.osd("%s" % sb.commands.sopel_commands, trigger.sender)
|
|
|
|
|
|
@sbprerun()
|
|
@plugin.nickname_command('nickname_commands')
|
|
def sopel_nickname_commands(bot, trigger, comrun):
|
|
bot.say("testing nickname_commands")
|
|
|
|
sb.osd("%s" % sb.commands.sopel_nickname_commands, trigger.sender)
|
|
|
|
|
|
@sbprerun()
|
|
@plugin.nickname_command('action_commands')
|
|
def sopel_action_commands(bot, trigger, comrun):
|
|
|
|
bot.say("testing action_commands")
|
|
|
|
sb.osd("%s" % sb.commands.sopel_action_commands, trigger.sender)
|