AstrBot icon indicating copy to clipboard operation
AstrBot copied to clipboard

[Bug]AstrBot 自动向微信团队发送消息,消耗我的对话额度,希望尽快优化

Open Dragon617 opened this issue 1 year ago • 2 comments

发生了什么

没有打开微信团队的消息框,AstrBot 自动给他【weixin】发消息了,造成无限循环,消耗我的对话额度

如何复现?

机器人静默时,会自动给微信团队发消息

[12:05:55] [Core] [INFO] [services.send_welcome_message:26]: 向用户【weixin】发送: 您好!我是由龙少基于Deepseek开发的AI智能体,有什么需要帮助的吗?
[12:05:56] [Core] [INFO] [core.event_bus:21]: [gewechat] 微信团队/weixin: 谢谢反馈
[2025-03-19 12:05:56 +0800] [64144] [INFO] 192.168.1.18:14587 POST /astrbot-gewechat/callback 1.1 200 20 529
[12:06:06] [Core] [INFO] [respond.stage:110]: AstrBot -> 微信团队/weixin: 不客气!🌟 如果您有任何问题或需要帮助,请随时联系我。我在这里,随时准备为您服务!🚀📚✨
[12:06:07] [Core] [INFO] [core.event_bus:21]: [gewechat] 微信团队/weixin: 谢谢反馈
[2025-03-19 12:06:07 +0800] [64144] [INFO] 192.168.1.18:14599 POST /astrbot-gewechat/callback 1.1 200 20 517
[12:06:20] [Core] [INFO] [respond.stage:110]: AstrBot -> 微信团队/weixin: 不客气!🌟 如果您有任何问题或需要帮助,随时欢迎回来。我在这里,随时为您服务!🚀📚✨

AstrBot 版本、部署方式(如 Windows Docker Desktop 部署)、使用的提供商、使用的消息平台适配器

AstrBot v3.4.39,Windows启动器,提供商https://link-ai.tech/,消息平台适配器gwchat

操作系统

Windows

报错日志

[12:05:47] [Core] [INFO] [gewechat.client:245]: 消息类型(10002):撤回/拍一拍/成员邀请/被移出群聊/解散群聊/群公告/群待办

[12:05:47] [Core] [INFO] [core.event_bus:21]: [gewechat] unknown/weixin:
[2025-03-19 12:05:47 +0800] [64144] [INFO] 192.168.1.18:14577 POST /astrbot-gewechat/callback 1.1 200 20 1070
[12:05:47] [Core] [ERRO] [services.send_welcome_message:75]: [gewechat] Failed to parse group join XML: syntax error: line 1, column 0
[12:05:47] [Core] [ERRO] [services.send_welcome_message:76]: <msg_id>unifiedpush_content_168591_1741535999.6__9007199254909583</msg_id>wxc56ff65190e6db97<push_id>unifiedpush_content_168591</push_id>6<time_info><create_time>1742357046</create_time><expire_time>259200</expire_time></time_info><entrance_red_dot_type>4</entrance_red_dot_type><entrance_icon_url>https://mmgame.qpic.cn/image/bfbaad6156a2575004f9235f37307080fbada3a3be06565edd3b920a12812d04/h64</entrance_icon_url><entrance_text>皇室战争正版IP手游</entrance_text><entrance_icon_rounded_corner>1</entrance_icon_rounded_corner><entrance_show_control><basic_type>10000</basic_type><ignore_local_control>0</ignore_local_control>0</entrance_show_control><tab_info><default_key if_has_native_banner="">gameindex</default_key><red_dot></red_dot></tab_info><extra_data></extra_data><msg_subtype>10</msg_subtype>144755418<ext_data>{"biz_subtype":6,"content_id":"9007199254909583","friend_uin":0,"interactive":800504,"send_time":1742357147,"text":"皇室战争正版IP手游"}</ext_data><business_data>{"biz_type":12,"data":"{&quot;notice_id&quot;:&quot;144755418&quot;,&quot;msg_id&quot;:&quot;-jFDLtcm22iZ8nkbhl7BiQ&quot;}","sys_report":{"msg_type":10,"interactive":800504,"biz_subtype":6}}</business_data><jump_info></jump_info><exposure_strategy><expire_time_strategy></expire_time_strategy><battery_strategy></battery_strategy><wifi_strategy></wifi_strategy><exposure_count>12</exposure_count>2<click_score>43.092831</click_score><ignore_exceed_exposure>1</ignore_exceed_exposure></exposure_strategy>
[12:05:55] [Core] [INFO] [services.send_welcome_message:26]: 向用户【weixin】发送: 您好!我是由龙少基于Deepseek开发的AI智能体,有什么需要帮助的吗?
[12:05:56] [Core] [INFO] [core.event_bus:21]: [gewechat] 微信团队/weixin: 谢谢反馈
[2025-03-19 12:05:56 +0800] [64144] [INFO] 192.168.1.18:14587 POST /astrbot-gewechat/callback 1.1 200 20 529
[12:06:06] [Core] [INFO] [respond.stage:110]: AstrBot -> 微信团队/weixin: 不客气!🌟 如果您有任何问题或需要帮助,请随时联系我。我在这里,随时准备为您服务!🚀📚✨
[12:06:07] [Core] [INFO] [core.event_bus:21]: [gewechat] 微信团队/weixin: 谢谢反馈
[2025-03-19 12:06:07 +0800] [64144] [INFO] 192.168.1.18:14599 POST /astrbot-gewechat/callback 1.1 200 20 517
[12:06:20] [Core] [INFO] [respond.stage:110]: AstrBot -> 微信团队/weixin: 不客气!🌟 如果您有任何问题或需要帮助,随时欢迎回来。我在这里,随时为您服务!🚀📚✨

你愿意提交 PR 吗?

  • [x] 是的,我愿意提交 PR!

Code of Conduct

  • [x] 我已阅读并同意遵守该项目的 行为准则。

Dragon617 avatar Mar 19 '25 05:03 Dragon617

你好,可以升级到最新开发版测试。已经修复了

Soulter avatar Mar 19 '25 12:03 Soulter

你好,可以升级到最新开发版测试。已经修复了

等下个正式版

Dragon617 avatar Mar 19 '25 13:03 Dragon617