SpiceBot/sopel_SpiceBot_Core_Prerun/rule_match.py
deathbybandaid 101dc129f9 test
2022-02-22 15:59:20 -05:00

17 lines
402 B
Python

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