Warring Nations

Discord bridge

Features / Discord

Your Discord server becomes a window into the game, and a place for staff to act, with read-only answers from a snapshot when Minecraft is down.

Ships in
wn_discord. Optional Cloudflare Worker for offline mode.
See also
Discord setup guide, Public website, Community

Article 1Chat and presence

1.1Messages flow both ways. Webhooks show each Minecraft player with their own skin avatar. Join, leave and death embeds include the avatar, the linked Discord user and play time on leave. The bot status can show live player, nation and war counts.

Article 2Console relay

2.1Mirror the server log to a channel in batches, filtered by level. It is read-only: nothing typed in Discord reaches the console. Secrets are redacted before anything is sent, and that cannot be turned off: the bot token, WN5_* environment values, credential-like variables, auth headers and key=value secrets are masked, and IP addresses too while redact_ip_addresses is on.

Article 3Slash commands and approvals

  • /config, /link, /link-info and /links for setup and account links.
  • Approvals post with Approve and Deny buttons in a staff channel.
  • Notification channels for announcements, wars, diplomacy, nations and staff alerts.
  • Account linking by one-time in-game code, or by Discord OAuth2. Optional access gate and role sync.

Article 4Offline mode

4.1An optional free Cloudflare Worker sits in front of the Discord interactions endpoint. While your server is up it forwards everything unchanged. While it is down, read-only commands are answered from a published snapshot labelled with its age, allowed state-changing requests are queued, and everything else says the server is offline. When the server returns it verifies each saved request again and applies it as the original user.

Article 5Server owners

5.1Run /wnadmin discord reload after editing config/wn/discord.toml or discord-main-server.toml. Setup steps are in the Discord setup guide.

Type at least two letters. Esc closes.