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