SpiceBot/sopel_SpiceBotCore/SBCore/prerun.py
deathbybandaid b7d016a750 test
2022-02-10 09:59:07 -05:00

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