47 lines
1.1 KiB
Python
47 lines
1.1 KiB
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.values()))
|
|
|
|
for x in sb.commands.sopel_commands:
|
|
for y in x:
|
|
bot.say(str(y))
|
|
|
|
|
|
@prerun_nickname_command()
|
|
@plugin.nickname_command('nickname_commands')
|
|
def sopel_nickname_commands(bot, trigger):
|
|
|
|
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):
|
|
|
|
for x in sb.commands.sopel_action_commands:
|
|
for y in x:
|
|
bot.say(str(y))
|