Skip to content
Ragon
Star
Apps

Discord

Discord is the least private messenger: Discord's servers keep every message you and the bot exchange, unencrypted, tied to your Discord account. Use it only for questions you would not mind Discord reading.

  1. Create an application in Discord's Developer Portal, give it a bot, and leave the bot private (Public Bot off) with no privileged intents. Setup refuses a public bot, or one with the Message Content intent.
  2. On the node, run ragon chat discord setup. It asks you to type yes, then for the bot token, which is not shown as you type and is kept only in the bridge's state, readable by you alone. It prints a link that adds the bot to your account.
  3. Run ragon chat discord pair and send the code it prints to the bot in a direct message, as /pair <code>, within 10 minutes. The code works once. Then run ragon chat start.

Discord is off until you run ragon chat discord setup; it ships with Ragon (0.9.9) but does nothing before that. The bot answers only you, and only in your direct messages with it: no server channels and no one else's conversations. Anyone else is told once a day that the bot is private; servers it is added to are left at once, except one you name as discord_home_server under [chat] so that you can message the bot. A status line with a Stop button shows while an answer is written, and approvals come as buttons.

With discord_web_url under [chat] set to your HTTPS front for ragon web, /app and the repository notices carry an Open button that opens the chat in ragon web. Signing in there is the same as from any browser: ragon web pair, or a code confirmed from Signal or Matrix.

ragon chat status lists the paired accounts, ragon chat discord users and ragon chat discord remove <id> manage them, and ragon chat discord off deletes the token and the pairings and withdraws the bot's commands. Delete the application in the Developer Portal as well.

While Discord is on, the node reaches Discord's servers outbound only (no inbound port, no webhook). Four names are looked up: discord.com, gateway.discord.gg, cdn.discordapp.com and media.discordapp.net; ragon-admin audit egress expects exactly those and no others. With /airgapped on the bridge pauses.