From d0bc5ebe72f02cf284c0d8a56a920e6757b7893e Mon Sep 17 00:00:00 2001 From: HibiKier <45528451+HibiKier@users.noreply.github.com> Date: Thu, 15 Jul 2021 10:19:07 +0800 Subject: [PATCH] Update __init__.py --- plugins/nonebot_plugin_manager/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/nonebot_plugin_manager/__init__.py b/plugins/nonebot_plugin_manager/__init__.py index 00986fcf..b8272cce 100644 --- a/plugins/nonebot_plugin_manager/__init__.py +++ b/plugins/nonebot_plugin_manager/__init__.py @@ -52,8 +52,8 @@ async def _(matcher: Matcher, bot: Bot, event: Event, state: T_State): # print(f'{matcher.module} -> this is hook') if not plugin_list[plugin]["default"]: if event.message_type == 'group': - if flmt.check(event.group): - flmt.start_cd(event.group) + if flmt.check(event.group_id): + flmt.start_cd(event.group_id) await bot.send_group_msg(group_id=event.group_id, message='此功能正在维护...') else: if flmt.check(event.user_id):