docs: add Discord bot to READMEs, architecture, operations guides, and locales (#6513)

* docs: add Discord bot to READMEs, architecture, operations guides, and locales

* docs: address review feedback on Discord bot formatting, backup commands, and architecture

* docs(discord): fix Persian typo and literal arrows on fa/zh bot pages

Senior review of #6513, two LOW findings in the two new pages:

- fa/operations/discord-bot.mdx:30 spelled "developers" with Cyrillic
  "де" in place of Persian "ده", rendering a mixed-script word.
- Both pages copied `$\rightarrow$` from the en page. The docs site has
  no math plugin (nothing in source.config.ts, no remark-math
  installed), so the built HTML shows the literal string
  "$\rightarrow$" in every menu path. Replaced with a Unicode arrow on
  fa and zh; en and ru have carried the same since #6486 and are left
  for a separate change.

---------

Co-authored-by: Sanaei <ho3ein.sanaei@gmail.com>
This commit is contained in:
Egor
2026-09-14 14:53:22 +05:00
committed by GitHub
parent 2d7c8c77f7
commit a09e136001
31 changed files with 310 additions and 79 deletions
@@ -28,13 +28,9 @@ cp /etc/x-ui/x-ui.db /root/x-ui-backup-$(date +%F).db
运行迁移,而不要强行套用旧的数据库结构。
</Callout>
## Telegram 备份
## 机器人自动备份(Telegram 与 Discord)
如果你已配置 [Telegram 机器人](/docs/operations/telegram-bot),启用
**`tgBotBackup`** 即可在周期性报告中附带一份备份(按 `tgRunTime`
计划执行,默认每天一次)。机器人会将**数据库**与 Xray 的
**`config.json`** 一并发送到你的管理员聊天,从而让你始终拥有一份服务器之外的副本。
管理员也可以从机器人的菜单中按需请求备份。
如果你已配置 [Telegram 机器人](/docs/operations/telegram-bot) 或 [Discord 机器人](/docs/operations/discord-bot),启用 **`tgBotBackup`** 或 **`discordBotBackup`** 即可在周期性报告中附带一份备份(按 `tgRunTime` / `discordRunTime` 计划执行,默认每天一次)。机器人会将**数据库**与 Xray 的 **`config.json`** 一并发送到你的管理员聊天或频道,从而让你始终拥有一份服务器之外的副本。管理员也可以随时从 Telegram 机器人的菜单或使用 Discord 的 `!backup` 命令按需请求备份。
## SQLite 转储 / 恢复