17 lines
360 B
Python
17 lines
360 B
Python
import functools
|
|
|
|
|
|
def prerun(t_command_type='module', t_command_subtype=None):
|
|
|
|
def actual_decorator(function):
|
|
|
|
@functools.wraps(function)
|
|
def internal_prerun(bot, trigger, sb, *args, **kwargs):
|
|
|
|
bot.say(str(id(trigger)))
|
|
|
|
sb.osd("test", trigger.sender)
|
|
|
|
return internal_prerun
|
|
return actual_decorator
|