This commit is contained in:
deathbybandaid 2022-02-12 13:18:14 -05:00
parent fe3929c43c
commit b76c84dffe
2 changed files with 4 additions and 1 deletions

View File

@ -70,8 +70,10 @@ def prerun():
def internal_prerun(bot, trigger, *args, **kwargs):
commands = get_commands(bot, trigger)
if len(commands) == 1:
function(bot, trigger, *args, **kwargs)
stringtest = function(bot, trigger, *args, **kwargs)
bot.say(stringtest)
return internal_prerun
return actual_decorator

View File

@ -13,6 +13,7 @@ def sb_test_commands(bot, trigger):
bot.say("%s" % trigger.raw)
bot.say("%s" % trigger.args[1])
return "fart knocker"
@prerun()