Archived
1
0
Fork 0
This repository has been archived on 2024-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
akari-bot/core/elements/module/__init__.py
2021-07-26 22:33:49 +08:00

26 lines
916 B
Python

from typing import Callable
import re
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,
is_regex_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.is_regex_function = is_regex_function
self.autorun = autorun