SpiceBot/sopel_SpiceBotCore/SBCore/prerun.py
deathbybandaid ad7c8ae2fa test
2022-02-10 09:55:13 -05:00

15 lines
292 B
Python

import functools
def prerun(sb, t_command_type='module'):
def actual_decorator(function):
@functools.wraps(function)
def internal_prerun(bot, trigger, *args, **kwargs):
bot.say(str(id(trigger)))
return internal_prerun
return actual_decorator