23 lines
813 B
Python
23 lines
813 B
Python
from typing import Callable
|
|
|
|
|
|
class Module:
|
|
def __init__(self,
|
|
function: Callable,
|
|
bind_prefix: str,
|
|
alias: [str, list, tuple],
|
|
help_doc: [str, list, tuple, None],
|
|
need_self_process: bool,
|
|
is_admin_function: bool,
|
|
is_base_function: bool,
|
|
is_superuser_function: bool,
|
|
autorun: bool):
|
|
self.function = function
|
|
self.bind_prefix = bind_prefix
|
|
self.alias = alias
|
|
self.help_doc = help_doc
|
|
self.need_self_process = need_self_process
|
|
self.is_admin_function = is_admin_function
|
|
self.is_base_function = is_base_function
|
|
self.is_superuser_function = is_superuser_function
|
|
self.autorun = autorun
|