This commit is contained in:
deathbybandaid 2022-05-05 12:30:17 -04:00
parent 0eaecc1c7d
commit c5bc9d0839
2 changed files with 13 additions and 7 deletions

View File

@ -53,7 +53,6 @@ def prerun():
# At this point, we update the re.match for trigger # At this point, we update the re.match for trigger
comrun.trigger = rebuild_trigger(comrun, function) comrun.trigger = rebuild_trigger(comrun, function)
print(str(comrun.trigger))
# Run function # Run function
function(bot, trigger, comrun, *args, **kwargs) function(bot, trigger, comrun, *args, **kwargs)

View File

@ -5,6 +5,19 @@ from sopel import plugin
from sopel_SpiceBot_Core_Prerun import prerun from sopel_SpiceBot_Core_Prerun import prerun
@prerun()
@plugin.command('testoa')
def commands_output_a(bot, trigger, comrun):
bot.say("%s" % trigger.raw)
bot.say("%s" % comrun.trigger.raw)
@prerun()
@plugin.command('testob')
def commands_output_b(bot, trigger, comrun):
bot.say("%s" % trigger.raw)
@prerun() @prerun()
@plugin.command('test', "testnew") @plugin.command('test', "testnew")
def commands_test(bot, trigger, comrun): def commands_test(bot, trigger, comrun):
@ -30,9 +43,3 @@ def commands_test_c(bot, trigger, comrun):
bot.say("test c") bot.say("test c")
bot.say("test c: %s" % trigger.raw) bot.say("test c: %s" % trigger.raw)
@prerun()
@plugin.command('fart box')
def fart_box(bot, trigger, comrun):
bot.say("fart box")