mirror of
https://github.com/Nezumi-2711/astrbot_plugin_qq_group_daily_analysis.git
synced 2026-09-22 13:38:43 +00:00
* feat(AnalysisApplicationService): 增加针对禁言的优化 * fix: 优先从 Event 中提取 bot_self_id * fix: 禁言异常处理 * fix: 不传递 no_cache=True 以免超时 * fix: 如果 bot_instance 没变,且已经有适配器,跳过重新创建,防止丢失内部状态 * fix: set_reaction 方法操作异常拦截 * fix: 修复错误的禁言发送消息,改为日志提示 * chore: add .tmp_refs to .gitignore * refactor(onebot): optimize and prune group mute cache * fix(onebot): resolve pylance type mismatch warning in min key * fix(onebot): annotate params dict with precise union type to resolve pylance warning
This commit is contained in:
@@ -535,6 +535,10 @@ class GroupDailyAnalysis(Star):
|
||||
reason = result.get("reason")
|
||||
if reason == "no_messages":
|
||||
yield event.plain_result("❌ 未找到足够的群聊记录")
|
||||
elif reason == "muted":
|
||||
logger.warning(
|
||||
f"群 {group_id} 开启了全群禁言或对 Bot 禁言,跳过回复以防抛出发送异常"
|
||||
)
|
||||
else:
|
||||
yield event.plain_result("❌ 分析失败,原因未知")
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user