SpiceBot/sopel_SpiceBot_Core_Prerun/command_args.py
deathbybandaid 3d5e5af76b test
2022-02-22 11:03:30 -05:00

18 lines
398 B
Python

import functools
def command_args():
"""This Detects --arguments to commands."""
def actual_decorator(function):
@functools.wraps(function)
def internal_command_args(bot, trigger, comrun, *args, **kwargs):
bot.say("command_args")
function(bot, trigger, comrun, *args, **kwargs)
return internal_command_args
return actual_decorator