24 lines
479 B
Python
24 lines
479 B
Python
import functools
|
|
|
|
|
|
class ComRun():
|
|
def __init__(self):
|
|
pass
|
|
|
|
|
|
def comrun_create():
|
|
"""This Detects --arguments to commands."""
|
|
|
|
def actual_decorator(function):
|
|
|
|
@functools.wraps(function)
|
|
def internal_comrun_create(bot, trigger, *args, **kwargs):
|
|
|
|
bot.say("comrun_create")
|
|
comrun = ComRun()
|
|
|
|
function(bot, trigger, comrun, *args, **kwargs)
|
|
|
|
return internal_comrun_create
|
|
return actual_decorator
|