fix:修复允许说话的群无效的问题

This commit is contained in:
SengokuCola
2025-04-23 23:11:38 +08:00
parent 7733782929
commit ae95218dc6
2 changed files with 4 additions and 2 deletions

View File

@@ -82,6 +82,10 @@ class ChatBot:
logger.debug(f"用户{userinfo.user_id}被禁止回复")
return
if groupinfo.group_id not in global_config.talk_allowed_groups:
logger.debug(f"{groupinfo.group_id}被禁止回复")
return
if message.message_info.template_info and not message.message_info.template_info.template_default:
template_group_name = message.message_info.template_info.template_name
template_items = message.message_info.template_info.template_items