17 lines
402 B
Python
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
|