支持不提供Discord令牌启动服务

重整代码内的Swagger排版
代码格式优化
This commit is contained in:
TheWhiteDog9487
2026-07-31 13:36:39 +08:00
parent 0d87eede70
commit 360f6686b6
11 changed files with 151 additions and 156 deletions
+8
View File
@@ -8,6 +8,14 @@
能用,但缺的东西非常多。
就像这个文档一样。
# 命令行参数
| 参数 | 说明 |
|---|------------------------------------------------------------|
| `install` / `--install` | 安装为 systemd 服务 |
| `uninstall` / `--uninstall` | 卸载 systemd 服务 |
| `--Discord_Bot_Token <令牌>` | 设置 Discord 机器人令牌,优先级高于同名环境变量 |
| `--Disable-Discord` | 安装systemd服务时禁用 Discord 相关功能,故不再要求提供令牌 |
# 注意事项
**本项目不保证配置文件和环境变量的向后兼容!!!**
**也就是说,如果你也要用的话,你可能必须在更新之后重新配置环境变量和配置文件**