(func=None)
tells bot to run function in a thread
tells bot to run function in a thread
tells bot to run function in a thread
def threaded(func=None):
    """
    tells bot to run function in a thread
    """
    def decorator(func):
        func.__brutal_threaded = True

        @functools.wraps(func)
        def wrapper(*args, **kwargs):
            return func(*args, **kwargs)
        return wrapper

    if func is None:
        return decorator
    else:
        return decorator(func)
def threaded ( func = None ) : def decorator ( func ) : func . __brutal_threaded = True @ functools . wraps ( func ) def wrapper ( * args , * * kwargs ) : return func ( * args , * * kwargs ) return wrapper if func is None : return decorator else : return decorator ( func )