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 |
|
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 |
|
Soulter
|
1f5a7e7885
|
Merge pull request #1940 from AstrBotDevs/fix-tg-active-reply
fix: cannot make active reply in telegram
|
2025-06-27 00:05:10 +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
|
6e9d9ac856
|
Merge pull request #1907 from IGCrystal/Branch-2
🐞 fix(WebUI): 修复安装插件按钮不可见
|
2025-06-26 23:28:37 +08:00 |
|
Soulter
|
8d6fada1eb
|
feat(ExtensionPage): show confirm dialog when click install plugin button
|
2025-06-26 23:25:59 +08:00 |
|
Soulter
|
3e715399a1
|
fix: 环境变量代理被忽略 (#1895)
|
2025-06-26 08:52:33 +08:00 |
|
Soulter
|
81cc8831f9
|
docs: update plugin issue template
docs: issue template
docs: update issue template
docs: update plugin issue template
fix: issue plugin template
docs: update plugin issue template
|
2025-06-26 08:28:28 +08:00 |
|
Soulter
|
f7370044a7
|
Merge pull request #1903 from IGCrystal/branch-1
✨ feat: 对PlatformPage使用翻译键
|
2025-06-25 22:49:03 +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 |
|
Soulter
|
392af7a553
|
fix: add pydub to requirements
|
2025-06-25 22:31:44 +08:00 |
|
鸦羽
|
d2dd07bad7
|
Merge pull request #1920 from AstrBotDevs/feat/gemini-tts
feat: 增加Gemini TTS API实现
|
2025-06-25 14:05:04 +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 |
|
Soulter
|
3d19fc89ff
|
docs: 10k star banner
|
2025-06-24 02:07:23 +08:00 |
|
Soulter
|
cd1b1919f4
|
docs: 10k star banner
|
2025-06-24 01:51:46 +08:00 |
|
IGCrystal
|
0ed646eb27
|
🐞 fix(WebUI): 修复安装插件按钮不可见
|
2025-06-23 19:41:56 +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 |
|
IGCrystal
|
01ef86d658
|
✨ feat: 对PlatformPage使用翻译键
|
2025-06-23 14:44:06 +08:00 |
|
Soulter
|
cd4802da04
|
Merge pull request #1902 from railgun19457/master
修复plugin_enable配置无法保存的问题
|
2025-06-23 13:30:31 +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 |
|
Soulter
|
cc1afd1a9c
|
Merge pull request #1900 from AstrBotDevs/fix-hc-jwt
Fix: JWT secret issue
|
2025-06-23 13:16:08 +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
|
9f2966abe9
|
Merge branch 'branch-1' of https://github.com/IGCrystal/AstrBot into branch-1
|
2025-06-23 12:09:10 +08:00 |
|
IGCrystal
|
4e28ea1883
|
🐞 fix: 显示运行时长国际化
|
2025-06-23 12:08:27 +08:00 |
|
Soulter
|
289214e85c
|
Merge pull request #1898 from IGCrystal/branch-1
🐞 fix(WebUI): 修复platform的logo路径问题
|
2025-06-23 11:59:58 +08:00 |
|
IGCrystal
|
a20d98bf93
|
🐞 fix(WebUI): 修复platform的logo路径问题
|
2025-06-23 11:57:20 +08:00 |
|
Soulter
|
7c3d98acbe
|
📦 release: v3.5.17
因为 pypi 不允许上传相同的文件名的 wheel
v3.5.17
|
2025-06-23 01:17:38 +08:00 |
|
Soulter
|
7311786f48
|
fix(dependencies): remove optional 'speed' from py-cord dependency
v3.5.16
|
2025-06-23 01:03:43 +08:00 |
|
Soulter
|
82de9c926e
|
docs: update readme
|
2025-06-23 00:40:34 +08:00 |
|
Soulter
|
7fd86d4de3
|
docs: update readme
|
2025-06-23 00:38:52 +08:00 |
|
Soulter
|
724da29e2a
|
📦 release: bump to v3.5.16
|
2025-06-23 00:15:30 +08:00 |
|
Soulter
|
54113d7b94
|
Merge pull request #1896 from AstrBotDevs/perf-webui-dialog-logo
Improve: improve styles of creating adapter dialog
|
2025-06-23 00:03:50 +08:00 |
|
Soulter
|
66396e8290
|
perf(webui): improve styles of creating adapter dialog in platform and provider page
|
2025-06-23 00:01:04 +08:00 |
|
Soulter
|
72be76215f
|
Merge pull request #1822 from IGCrystal/branch-1
✨ feat(WebUI): complete dashboard internationalization system refactor
|
2025-06-22 22:22:33 +08:00 |
|
Soulter
|
ace86703a9
|
Merge pull request #1888 from HakimYu/master
Discord 实现 SlashCommand 的注册、添加对 At 与 Reply 的支持、设置机器人 Activity
|
2025-06-22 22:19:19 +08:00 |
|