diff options
author | Kyomotoi <[email protected]> | 2023-01-08 23:41:00 +0800 |
---|---|---|
committer | Kyomotoi <[email protected]> | 2023-01-08 23:41:00 +0800 |
commit | fedcda50695fb77317c86a3addd8493688fc1aef (patch) | |
tree | 5dbf987c49c8a623c781d225b2ab6ab582519440 /ATRI/plugins | |
parent | 093b9f750339762e89e451381f9eef527bdc3d77 (diff) | |
download | ATRI-fedcda50695fb77317c86a3addd8493688fc1aef.tar.gz ATRI-fedcda50695fb77317c86a3addd8493688fc1aef.tar.bz2 ATRI-fedcda50695fb77317c86a3addd8493688fc1aef.zip |
🐛 修复 bug
Diffstat (limited to 'ATRI/plugins')
-rw-r--r-- | ATRI/plugins/manage/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
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] |