32 lines
847 B
Python
32 lines
847 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_nickname_command(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('fart')
|
|
def sb_fart_command(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)
|
|
|
|
bot.say(str(bot.rules.get_all_commands()))
|
|
bot.say(str(bot.rules.get_all_nick_commands()))
|
|
bot.say(str(bot.rules.get_all_action_commands()))
|