mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 06:59:53 -05:00
test
This commit is contained in:
parent
477c1490f5
commit
3ed588c756
@ -20,6 +20,15 @@ class BotPrerun():
|
|||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.dict = {}
|
self.dict = {}
|
||||||
|
|
||||||
|
def hyphenargs(self, trigger_command_type='module'):
|
||||||
|
def actual_decorator(function):
|
||||||
|
@functools.wraps(function)
|
||||||
|
def internal_prerun(bot, trigger, *args, **kwargs):
|
||||||
|
bot.say("here")
|
||||||
|
return function(bot, trigger, *args, **kwargs)
|
||||||
|
return internal_prerun
|
||||||
|
return actual_decorator
|
||||||
|
|
||||||
def prerun(self, trigger_command_type='module'):
|
def prerun(self, trigger_command_type='module'):
|
||||||
def actual_decorator(function):
|
def actual_decorator(function):
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user