mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-02 02:00:01 +08:00
webui主页和插件管理api更新
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
from typing import List
|
||||
from nonebot.adapters.onebot.v11 import MessageEvent
|
||||
from ._config import SearchType
|
||||
|
||||
|
||||
def parse_data(cmd: str, event: MessageEvent, superusers: List[str]):
|
||||
search_type = SearchType.TOTAL
|
||||
if cmd[:2] == "全局":
|
||||
if str(event.user_id) in superusers:
|
||||
if cmd[2] == '日':
|
||||
search_type = SearchType.DAY
|
||||
elif cmd[2] == '周':
|
||||
_type = SearchType.WEEK
|
||||
elif cmd[2] == '月':
|
||||
_type = SearchType.MONTH
|
||||
|
||||
Reference in New Issue
Block a user