SpiceBot/sopel_SpiceBot_Core_Prerun/comrun.py
deathbybandaid 01847c9d81 test
2022-02-22 11:05:05 -05:00

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