refactor!: Bot 门面接管启动,移除 main/run_loop 与控制台脚本入口

bot.run() 同步启动、bot.start() 嵌入外部 asyncio 应用;
bot.call_api 通用 REST、bot.api 类型化 API 面、bot.services 自定义组件注入;
services 登记扩到 8 项(含 Bot 自身,可标注注入)。
This commit is contained in:
snowy-yang committed 2026-10-03 19:12:06 +08:00
1 parent 1f91b1acca
commit 0515c6e4c0
10 files changed
+317 -697

No files matched your search

+1 -3
View File
@@ -30,12 +30,10 @@ dependencies = [
[project.urls]
Homepage = "https://github.com/snowy-yang/qqbotsdk"
Documentation = "https://qqbotsdk.4i.hk"
Repository = "https://github.com/snowy-yang/qqbotsdk"
Changelog = "https://github.com/snowy-yang/qqbotsdk/blob/main/CHANGELOG.md"
[project.scripts]
qqbotsdk = "qqbotsdk:main"
[build-system]
requires = ["uv_build>=0.12.7,<0.13.0"]
build-backend = "uv_build"