add permission and command

This commit is contained in:
yanyongyu
2020-08-17 16:09:41 +08:00
parent 865fd6af4c
commit 6435e29e8b
16 changed files with 429 additions and 254 deletions

View File

@ -103,12 +103,14 @@ class Config(BaseConfig):
# bot connection configs
api_root: Dict[str, str] = {}
api_timeout: float = 60.
api_timeout: Optional[float] = 60.
access_token: Optional[str] = None
# bot runtime configs
superusers: Set[int] = set()
nickname: Union[str, Set[str]] = ""
command_start: Set[str] = {"/"}
command_sep: Set[str] = {"."}
session_expire_timeout: timedelta = timedelta(minutes=2)
# custom configs