From fedcda50695fb77317c86a3addd8493688fc1aef Mon Sep 17 00:00:00 2001 From: Kyomotoi <0w0@imki.moe> Date: Sun, 8 Jan 2023 23:41:00 +0800 Subject: =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ATRI/exceptions.py | 2 +- ATRI/plugins/manage/__init__.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'ATRI') diff --git a/ATRI/exceptions.py b/ATRI/exceptions.py index cd54db4..f5ee0f1 100644 --- a/ATRI/exceptions.py +++ b/ATRI/exceptions.py @@ -137,6 +137,6 @@ async def _(bot: Bot, event, matcher: Matcher, exception: Optional[Exception]): limiter.increase(group_id) try: - await matcher.finish(msg) + await bot.send(event, msg) except Exception: return diff --git a/ATRI/plugins/manage/__init__.py b/ATRI/plugins/manage/__init__.py index 03de2fe..f79c53c 100644 --- a/ATRI/plugins/manage/__init__.py +++ b/ATRI/plugins/manage/__init__.py @@ -165,7 +165,7 @@ user_block_service = plugin.on_regex(r"对用户(.*?)禁用(.*)", "针对某一 async def _user_block_service(event: MessageEvent): msg = str(event.message).strip() pattern = r"对用户(.*?)禁用(.*)" - reg = re.findall(pattern, msg) + reg = re.findall(pattern, msg)[0] aim_user = reg[0] aim_service = reg[1] @@ -182,7 +182,7 @@ user_unblock_service = plugin.on_regex(r"对用户(.*?)启用(.*)", "针对某 async def _user_unblock_service(event: MessageEvent): msg = str(event.message).strip() pattern = r"对用户(.*?)启用(.*)" - reg = re.findall(pattern, msg) + reg = re.findall(pattern, msg)[0] aim_user = reg[0] aim_service = reg[1] -- cgit v1.2.3