Discord BOT Bridge (Gateway + Slash Commands)
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Advanced Discord integration for Rust Legacy (Fougerite)
Preview
Examples of Discord ↔ Server interaction
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Description
Discord BOT Bridge is a powerful and optimized system that connects your Rust Legacy server directly with Discord using the official Gateway API.
This version removes old command channel limitations and introduces modern slash commands, admin tools, and a full real-time chat bridge between Discord and the game.
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Features
- Slash Commands — fully integrated Discord commands
- Admin Commands — ban, unban, kick, airdrop, announce
- Real-time Chat Bridge — Discord ↔ Server communication
- Auto Message Cleanup — deletes user messages and reposts as embed
- Embed System — clean and modern Discord messages
- Avatar Support — shows Discord user avatars in chat
- Account Linking — link Discord with SteamID
- DM System — send messages directly to users
- Custom Commands — dynamic command responses
- Bot Presence Control — playing / watching / streaming
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Slash Commands
- /players → Show online players
- /status → Server status (Admin only)
- /discord → Link your Discord account
Admin Commands
- /ban <name/steamid>
- /kick <name/steamid>
- /unban <type> <value>
- /airdrop <amount>
- /announce <message>
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Discord Chat Bridge
You can configure a Discord channel to act as in-game chat:
• Messages sent in Discord appear in-game
• Messages from players appear in Discord
• User messages are automatically deleted
• Reposted as clean embeds with avatar
This creates a seamless global chat between Discord and your server.
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Bot Control (In-Game)
- /botstatus → Custom presence
- /botonline → Set bot online
- /sendchannel → Send message to Discord
- /embed → Send advanced embed
- /alertall → Send DM to all linked users
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
How It Works
• Uses Discord Gateway (WebSocket) for real-time events
• HTTP API for sending messages and embeds
• No webhook dependency required
• Fully async and optimized
• Works globally (no command channel needed)
Everything is designed for performance, flexibility, and modern Discord integration.
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Installation
- Create a folder named DiscordBOT
- Place the .dll inside:
rust_server/Save/DiscordBOT/
- Edit settings.json
- Add your Bot Token and Chat Channel ID
- Start or reload the server
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
In-Game Discord Control (JS Sender)
This system allows you to control the Discord bot directly from the game using simple commands.
You can change bot status, send embeds, messages, alerts and more in real-time.
Bot Presence Commands
- /botonline → Shows server name + players online
- /botplaying <text> → Sets "Playing" status
- /botwatching <text> → Sets "Watching" status
- /botstream <text> → Sets "Streaming" status (Twitch)
Discord Messaging
- /sendchannel <message> → Send message to Discord channel
- /embed → Send advanced embed with server info
- /alertall <message> → Send DM to all linked users
Utility Commands
- /addcmd <name> <message> → Create custom Discord command
- /senddm <message> → Send DM to yourself
- /islinked → Check Discord link status
- /unlinkdiscord → Unlink your Discord account
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Example Usage
/botonline
→ RustServer | 45 players
/botwatching players farming
→ Watching players farming
/botplaying Rust Legacy
→ Playing Rust Legacy
/botstream Live Raid
→ Streaming Live Raid
/sendchannel Server restart in 10 minutes
→ Message sent to Discord
/alertall Raid incoming
→ DM sent to all linked users
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬