Update __init__.py

This commit is contained in:
HibiKier
2021-07-15 10:19:07 +08:00
committed by GitHub
parent f9d6e7d37d
commit d0bc5ebe72
+2 -2
View File
@@ -52,8 +52,8 @@ async def _(matcher: Matcher, bot: Bot, event: Event, state: T_State):
# print(f'{matcher.module} -> this is hook') # print(f'{matcher.module} -> this is hook')
if not plugin_list[plugin]["default"]: if not plugin_list[plugin]["default"]:
if event.message_type == 'group': if event.message_type == 'group':
if flmt.check(event.group): if flmt.check(event.group_id):
flmt.start_cd(event.group) flmt.start_cd(event.group_id)
await bot.send_group_msg(group_id=event.group_id, message='此功能正在维护...') await bot.send_group_msg(group_id=event.group_id, message='此功能正在维护...')
else: else:
if flmt.check(event.user_id): if flmt.check(event.user_id):