- 文件代理(PUBLIC_URL):上传与直链文本的 URL 换成 bot 公开地址,请求 到来现场重解析直链再转发字节,绕开 QQ 抓风控直链失败(40093007)与 qs 本地流外网不可达;PROXY_PORT 指定监听端口 - 群消息去重补第二把钥匙:全量模式下 @消息同时命中两事件且 msg_id 不同, 只按 msg_id 拦不住,再加「群+发送人+文本」10 秒短窗(修双发) - 「<平台>下载 <歌名>」改出该平台的选歌菜单(与 /点歌 同款交互、spage 翻页锁定平台),不再直接下第一首 - 猫耳/懒人/蜻蜓节目级条目点编号先出选集菜单(/album):猫耳选集接口 忽略翻页参数,一次拉 50 集本地切片;懒人/蜻蜓走服务端翻页;空选集 (已下线/需登录)给明确提示 - 指令面板条目按 /sources 现算、按宽度裁剪(修 30013 超限);装配入口 改用 Bot 门面;qqbotsdk 依赖更名 qqbotsdk-py(撤 GitHub archive 源)
This commit is contained in:
1 parent
324fe86962
commit
c364506925
10 files changed
+1883
-254
No files matched your search
+1
-4
@@ -3,7 +3,7 @@ name = "musicbot"
|
||||
version = "0.1.0"
|
||||
description = "QQ 群点歌 bot:MusicServer 搜索 + 选歌菜单 + 歌曲卡片回调按钮"
|
||||
requires-python = ">=3.13"
|
||||
dependencies = ["qqbotsdk", "loguru"]
|
||||
dependencies = ["qqbotsdk-py", "loguru"]
|
||||
|
||||
[project.scripts]
|
||||
musicbot = "musicbot.main:main"
|
||||
@@ -18,9 +18,6 @@ module-root = "" # flat 布局:musicbot/ 在仓库根而非 src/ 下
|
||||
[dependency-groups]
|
||||
dev = ["pyright", "pytest", "pytest-asyncio", "ruff"]
|
||||
|
||||
[tool.uv.sources]
|
||||
qqbotsdk = { url = "https://github.com/snowy-yang/qqbotsdk/archive/refs/heads/main.tar.gz" }
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
asyncio_mode = "auto"
|
||||
|
||||
|
||||
Reference in new issue
Block a user