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