From c5bc9d0839dab6bcbb263682e6fbde35bee583b3 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Thu, 5 May 2022 12:30:17 -0400 Subject: [PATCH] test --- sopel_SpiceBot_Core_Prerun/__init__.py | 1 - sopel_SpiceBot_Runtime_Commands/__init__.py | 19 +++++++++++++------ 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/sopel_SpiceBot_Core_Prerun/__init__.py b/sopel_SpiceBot_Core_Prerun/__init__.py index 2a9e84a..20c4a6e 100644 --- a/sopel_SpiceBot_Core_Prerun/__init__.py +++ b/sopel_SpiceBot_Core_Prerun/__init__.py @@ -53,7 +53,6 @@ def prerun(): # At this point, we update the re.match for trigger comrun.trigger = rebuild_trigger(comrun, function) - print(str(comrun.trigger)) # Run function function(bot, trigger, comrun, *args, **kwargs) diff --git a/sopel_SpiceBot_Runtime_Commands/__init__.py b/sopel_SpiceBot_Runtime_Commands/__init__.py index ba4b282..e6c04bc 100644 --- a/sopel_SpiceBot_Runtime_Commands/__init__.py +++ b/sopel_SpiceBot_Runtime_Commands/__init__.py @@ -5,6 +5,19 @@ from sopel import plugin 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() @plugin.command('test', "testnew") 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: %s" % trigger.raw) - - -@prerun() -@plugin.command('fart box') -def fart_box(bot, trigger, comrun): - bot.say("fart box")