Gao Jinzhe
|
d8aae538cd
|
Merge branch 'AstrBotDevs:master' into Astrbot_session_manage
|
2025-06-28 14:55:38 +08:00 |
|
Soulter
|
d14513ddfd
|
fix: lint warnings
|
2025-06-28 14:51:35 +08:00 |
|
Soulter
|
9a9017bc6c
|
perf: use union oper for merging dict
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
|
2025-06-28 14:46:29 +08:00 |
|
Gao Jinzhe
|
cdded38ade
|
Merge branch 'AstrBotDevs:master' into Astrbot_session_manage
|
2025-06-27 17:10:08 +08:00 |
|
advent259141
|
f536f24833
|
astrbot/core/pipeline/process_stage/method/llm_request.py
astrbot/core/pipeline/result_decorate/stage.py
astrbot/core/star/session_llm_manager.py
astrbot/core/star/session_tts_manager.py
astrbot/dashboard/routes/session_management.py
astrbot/dashboard/server.py
dashboard/src/views/SessionManagementPage.vue
packages/astrbot/main.py
|
2025-06-27 17:08:05 +08:00 |
|
Ruochen
|
f5bff00b1f
|
Merge branch 'master' of https://github.com/RC-CHN/AstrBot
|
2025-06-27 17:03:58 +08:00 |
|
Ruochen
|
27c9717445
|
feat:允许html_render方法传入配置参数
|
2025-06-27 17:03:26 +08:00 |
|
Soulter
|
863a1ba8ef
|
Merge pull request #1922 from SXP-Simon/master
[feat] (discord_platform_adapter) 增加了对机器人 Role Mention 方法的响应,并且修复了控制面板上 Discord 平台无法优雅重载的 Bug
|
2025-06-27 14:59:37 +08:00 |
|
Soulter
|
cb04dd2b83
|
chore: remove unnecessary codes
|
2025-06-27 14:59:08 +08:00 |
|
Soulter
|
8c7cf51958
|
chore: code format
|
2025-06-27 14:46:23 +08:00 |
|
Soulter
|
25f7a68a13
|
Merge pull request #1709 from shuiping233/fix-qq-offical-session-bug
fix: qq_official适配器使用SessionController(会话控制)功能时机器人回复消息无法发送到聊天平台
|
2025-06-27 14:35:54 +08:00 |
|
Soulter
|
62d8cf79ef
|
fix: remove deprecated pre_send and post_send calls for specific platforms
|
2025-06-27 14:31:35 +08:00 |
|
Gao Jinzhe
|
646b18d910
|
Merge branch 'AstrBotDevs:master' into master
|
2025-06-27 12:26:15 +08:00 |
|
Soulter
|
80fca470f2
|
fix: cannot make active reply in telegram
Co-authored-by: youtiaoguagua <cloudcranesss@210625568+cloudcranesss@users.noreply.github.com>
|
2025-06-27 00:04:25 +08:00 |
|
Soulter
|
3e715399a1
|
fix: 环境变量代理被忽略 (#1895)
|
2025-06-26 08:52:33 +08:00 |
|
Soulter
|
51b015a629
|
Merge pull request #1830 from zhx8702/feat-wechat-tts-mp3towav
feat: wechatpadpro 触发tts时 添加对mp3格式音频支持
|
2025-06-25 22:46:10 +08:00 |
|
回归天空
|
cebcd6925a
|
[fix] (discord_platform_adapter) 解决了 “Discord 平台无法优雅重载” 的 bug
#### 问题现象(AI总结)
- 在通过 Web 面板或配置变更热重载 Discord 平台时,适配器的 terminate() 方法会被调用,但经常出现“卡死”或长时间无响应,导致 Discord 平台无法优雅重载。
- 日志显示停留在“正在清理已注册的斜杠指令...”等步骤,甚至出现超时或异常。
#### 2. 原因分析
- 适配器的 terminate() 方法中,涉及多个异步操作(如取消 polling 任务、清理斜杠指令、关闭客户端)。
- 某些 await 操作(如 await self.client.sync_commands() 或 await self.client.close())在网络异常、事件循环被取消等情况下,可能会阻塞或抛出 CancelledError,导致整个重载流程卡住。
- 之前的实现没有对这些 await 操作加超时保护,也没有分步日志,难以定位具体卡点。
#### 3. 修复措施
- 分步日志:在 terminate() 的每个关键步骤前后都加了详细日志,便于定位卡点。
- 超时保护:对所有关键 await 操作(如 polling 任务取消、指令清理、客户端关闭)都加了 asyncio.wait_for(..., timeout=10),防止无限阻塞。
- 健壮性提升:先 cancel polling 任务,再清理指令,最后关闭客户端。每一步都捕获异常并输出日志,保证即使某一步失败也能继续后续清理。
- 避免重复终止:移除了 run() 方法中的 finally: await self.terminate(),只允许外部统一调度,防止重复调用导致资源冲突或日志重复。
#### 4. 修复效果
- 现在 Discord 平台适配器在热重载或终止时,能优雅地依次完成所有清理步骤,不会因某一步阻塞导致整个流程卡死。
|
2025-06-25 11:46:49 +08:00 |
|
回归天空
|
e7b4357fc7
|
[feat] (discord_platform_adapter) 增加了对机器人 Role Mention 方法的响应
|
2025-06-25 11:41:55 +08:00 |
|
Raven95676
|
dc279dde4a
|
fix: 简化get_audio方法中的提示文本生成逻辑,清除冗余判断逻辑
|
2025-06-25 10:55:51 +08:00 |
|
Raven95676
|
c0810a674f
|
feat: 增加Gemini TTS API实现
|
2025-06-25 10:50:04 +08:00 |
|
邹永赫
|
c0c5859c99
|
Merge pull request #1905 from zouyonghe/master
使用定义的Plain类型代替原始基础类型str,保持代码统一性
|
2025-06-23 18:52:56 +09:00 |
|
邹永赫
|
a47121b849
|
使用定义的Plain类型代替原始基础类型str,保持代码统一性
|
2025-06-23 18:49:47 +09:00 |
|
邹永赫
|
d9dd20e89a
|
Merge pull request #1904 from zouyonghe/master
修复代码重构造成的无法向前兼容在node中发送简单文本信息的问题
|
2025-06-23 18:20:52 +09:00 |
|
邹永赫
|
ed4609ebe5
|
修复代码重构造成的无法向前兼容在node中发送简单文本信息的问题
|
2025-06-23 18:17:37 +09:00 |
|
Gao Jinzhe
|
e24225c828
|
Merge branch 'master' into master
|
2025-06-23 15:21:08 +08:00 |
|
Misaka Mikoto
|
2aca65780f
|
Merge branch 'AstrBotDevs:master' into master
|
2025-06-23 13:29:31 +08:00 |
|
Soulter
|
2c435f7387
|
Merge pull request #1899 from IGCrystal/branch-1
🐞 fix: 显示运行时长国际化
|
2025-06-23 13:21:59 +08:00 |
|
railgun19457
|
6f098cdba6
|
修复plugin_enable配置无法保存的问题
|
2025-06-23 13:06:46 +08:00 |
|
Soulter
|
d03e9fb90a
|
fix: jwt secret
|
2025-06-23 12:36:11 +08:00 |
|
IGCrystal
|
4e28ea1883
|
🐞 fix: 显示运行时长国际化
|
2025-06-23 12:08:27 +08:00 |
|
Soulter
|
7c3d98acbe
|
📦 release: v3.5.17
因为 pypi 不允许上传相同的文件名的 wheel
|
2025-06-23 01:17:38 +08:00 |
|
Soulter
|
724da29e2a
|
📦 release: bump to v3.5.16
|
2025-06-23 00:15:30 +08:00 |
|
Soulter
|
7b25495463
|
style: code quality
|
2025-06-22 22:11:28 +08:00 |
|
HakimYu
|
3d4b651c1f
|
fix: 修复 send_by_session 的 message_obj 为 None 的错误
fix: 修复 determine_messagee_type 会获取到服务器id的错误,并拆分成两个函数
|
2025-06-22 20:33:26 +08:00 |
|
HakimYu
|
ac4f3d8907
|
feat: 添加 Discord 斜杠指令注册功能及相关配置项
feat: 添加 Activity 设置项
fix: 修复 At Reply 未处理的问题
|
2025-06-22 16:29:02 +08:00 |
|
Soulter
|
f9c3e4cdb0
|
Merge pull request #1821 from Zhalslar/gsv-tts-selfhost
Feature: 新增 GPT_SoVIS 的 TTS 服务商
|
2025-06-21 23:58:07 +08:00 |
|
Soulter
|
dc62c1f8d4
|
style: code format
|
2025-06-21 23:56:06 +08:00 |
|
Soulter
|
5c0c9f687e
|
style: code quality
|
2025-06-21 23:52:17 +08:00 |
|
Soulter
|
99e47540d5
|
styles: code quality
|
2025-06-21 23:33:47 +08:00 |
|
Soulter
|
8e1885ffeb
|
Merge branch 'master' into master
|
2025-06-21 23:21:37 +08:00 |
|
Soulter
|
1057b4bc35
|
style: code quality
|
2025-06-21 23:12:50 +08:00 |
|
Soulter
|
efc0116595
|
feat: Verify Slack request signature using HMAC
|
2025-06-21 23:07:34 +08:00 |
|
lxfight
|
75a2803710
|
fix: 清空交互事件的 message_str,确保仅专门指令处理器响应;优化图片处理逻辑,支持多种图片来源
- 修复了@激活机器人时,指令无法正确处理的问题
- 修复了base64 图片无法发送的问题
注意:本次提交的代码功能还需要针对全部功能进行一次系统完整的测试,计划与6月22日下午完成。
|
2025-06-21 20:12:38 +08:00 |
|
Soulter
|
fb3169faa4
|
feat: add platform adapter support for Slack
|
2025-06-21 18:33:48 +08:00 |
|
lxfight
|
b9fab74edc
|
feat: 拆分Discord 适配器的部分代码,并处理一些小的问题。
- 基于最小权限原则,修改了 Bot 申请的权限范围
- 拆分了代码,使得文件结构更加清晰
|
2025-06-20 21:43:23 +08:00 |
|
lxfight
|
d0b10b9195
|
feat: 添加 Discord 平台适配器及相关组件,支持 Discord Bot 功能
- 添加了一个新的依赖 py-cord[speed]
- 添加了针对 Discord 平台的 Discord Bot 适配器
|
2025-06-20 21:22:04 +08:00 |
|
Gao Jinzhe
|
50a296de20
|
Merge branch 'AstrBotDevs:master' into master
|
2025-06-20 14:39:57 +08:00 |
|
Zhalslar
|
bee5d3550f
|
Merge branch 'gsv-tts-selfhost' of https://github.com/Zhalslar/AstrBot_Zhalslar into gsv-tts-selfhost
|
2025-06-19 00:52:16 +08:00 |
|
Zhalslar
|
1789393151
|
提供initialize和terminate方法对接上游
|
2025-06-19 00:52:03 +08:00 |
|
Soulter
|
345afe1338
|
fix: 修复 PipInstaller 中 pip 调用方式,确保使用当前 Python 解释器
|
2025-06-19 00:38:23 +08:00 |
|