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:
EgorandSanaei authored and GitHub committed 2026-09-14 11:53:22 +02:00 Unverified
1 parent 2d7c8c77f7
commit a09e136001
31 files changed
+310 -79

No files matched your search

+1 -1
View File
@@ -40,7 +40,7 @@ flowchart LR
- **Per-client** traffic quotas, expiry dates, IP limits, online status, and
one-click share links / QR codes.
- **Subscriptions** in VLESS, Clash/Mihomo, and JSON formats.
- Operational tooling: **multi-node** management, a **Telegram bot**, backups,
- Operational tooling: **multi-node** management, **Telegram and Discord bots**, backups,
Fail2ban-based IP limiting, and a documented REST API.
## Under the hood
+1 -1
View File
@@ -46,7 +46,7 @@ leaves the page.
- **Per-client controls** — traffic quotas, expiry dates, IP limits, share
links, and QR codes.
- **Subscriptions** — VLESS, Clash/Mihomo, and JSON formats.
- **Operations** — multi-node management, Telegram bot, backups, and a REST API.
- **Operations** — multi-node management, Telegram and Discord bots, backups, and a REST API.
<Callout type="info">
New to Xray? Read [What is 3x-ui?](/docs/guide) first — it explains how the panel, Xray-core, and
@@ -31,13 +31,9 @@ To restore, stop the panel, put the database back in place, and start it again.
old schema.
</Callout>
## Telegram backup
## Automated bot backups (Telegram & Discord)
If you've configured the [Telegram bot](/docs/operations/telegram-bot), enable
**`tgBotBackup`** to attach a backup to the periodic report (on the `tgRunTime`
schedule, default daily). The bot sends both the **database** and the **Xray
`config.json`** to your admin chat, so you always have an off-server copy. Admins
can also request a backup on demand from the bot's menu.
If you've configured the [Telegram bot](/docs/operations/telegram-bot) or [Discord bot](/docs/operations/discord-bot), enable **`tgBotBackup`** or **`discordBotBackup`** to attach a backup to the periodic report (on the `tgRunTime` / `discordRunTime` schedule, default daily). The bot sends both the **database** and the **Xray `config.json`** directly to your admin chat or channel, ensuring an off-server copy. Admins can also request a backup on demand from the Telegram bot's menu or using `!backup` in Discord.
## SQLite dump / restore
Loaded 3 of 31 files, more files were not shown because too many files have changed in this diff. Show more