SpiceBot/sopel_SpiceBot_Runtime_Commands/__init__.py
deathbybandaid fd43b7aea6 test
2022-02-12 11:50:44 -05:00

44 lines
774 B
Python

from sopel import plugin
from sopel_SpiceBot_Core_1 import sb
from sopel_SpiceBot_Core_Prerun import prerun_command
@prerun_command()
@plugin.command('test')
def commands_test(bot, trigger):
bot.say("%s" % trigger.raw)
bot.say("%s" % trigger.args[1])
@prerun_command()
@plugin.command('testa')
def commands_test_a(bot, trigger):
bot.say("test a")
bot.say("%s" % trigger.hostmask)
bot.say("test a: %s" % trigger.raw)
@prerun_command()
@plugin.command('testb')
def commands_test_b(bot, trigger):
bot.say("test b")
bot.say("test b: %s" % trigger.raw)
@plugin.command('testc')
def commands_test_c(bot, trigger):
bot.say("test c")
bot.say("test c: %s" % trigger.raw)
sb.commands.dispatch_command(bot, trigger, ".testa")