From b6b2f2e2a65581b2e8a00b68c97a3964727960e2 Mon Sep 17 00:00:00 2001 From: HibiKier <775757368@qq.com> Date: Tue, 13 Dec 2022 23:01:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D.unban?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++++ utils/depends/__init__.py | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d4663d6c..310fd6fe 100644 --- a/README.md +++ b/README.md @@ -296,6 +296,10 @@ PS: **ARM平台** 请使用全量版 同时 **如果你的机器 RAM < 1G 可能 ## 更新 +### 2022/12/13 + +* 修复.unban + ### 2022/12/12 * 修改HTML帮助禁用提示文本错误 diff --git a/utils/depends/__init__.py b/utils/depends/__init__.py index 67e48794..be037513 100644 --- a/utils/depends/__init__.py +++ b/utils/depends/__init__.py @@ -88,7 +88,7 @@ def ImageList(msg: Optional[str] = None, contain_reply: bool = True) -> List[str return Depends(dependency) -def AtList(msg: Optional[str] = None, contain_reply: bool = True) -> List[str]: +def AtList(msg: Optional[str] = None, contain_reply: bool = True) -> List[int]: """ 说明: 获取at列表(包括回复时),含有msg时不能为空,为空时提示并结束事件 @@ -97,7 +97,7 @@ def AtList(msg: Optional[str] = None, contain_reply: bool = True) -> List[str]: :param contain_reply: 包含回复内容 """ async def dependency(matcher: Matcher, event: MessageEvent): - return await _match(matcher, event, msg, get_message_at, contain_reply) + return [int(x) for x in await _match(matcher, event, msg, get_message_at, contain_reply)] return Depends(dependency)