diff options
Diffstat (limited to 'ATRI')
-rw-r--r-- | ATRI/exceptions.py | 2 | ||||
-rw-r--r-- | ATRI/plugins/manage/__init__.py | 4 |
2 files changed, 3 insertions, 3 deletions
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] |