DiscordBOT + API

DiscordBOT + API 7.2.1

No permission to download
Fougerite Compatibility
1.9.4 or +
Plugin's Engine
C# (Modules)

Discord BOT Bridge v7.2

(Gateway + Slash Commands + Plugin Interaction Replies)

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

Modern real-time Discord integration for Rust Legacy (Fougerite)

Preview

Live interaction between Discord and your Rust Legacy server



1777722747681.png

1777722751746.png

1777722760177.png

1777931623331.png


▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

Description


Discord BOT Bridge is a powerful real-time Discord integration system built specifically for Rust Legacy servers using Fougerite.

Instead of outdated webhook spam or polling systems, this plugin connects directly to the official Discord Gateway API through WebSocket connections and provides:



• Native Slash Commands
• Real-time Chat Bridge
• Dynamic Interaction Replies
• Discord ↔ Steam Linking
• DMs & Embeds
• Presence Control
• Role-Based Permissions
• Plugin API Hooks
• Runtime Command Registration



Everything is fully async, optimized and designed for production servers.


▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬


✨ Main Features

  • Native Slash Commands
    Real Discord slash commands with no prefixes
  • Discord Gateway API
    Real WebSocket communication with Discord
  • Plugin Interaction Replies
    Reply directly to Discord interactions from JS plugins
  • Dynamic Slash Commands
    Register slash commands at runtime from plugins
  • Advanced Discord Metadata
    Username, mention, avatar, guild, roles, admin state & more
  • Role-Based Permissions
    Restrict commands using Discord roles
  • Admin Moderation System
    Ban, kick, unban, announce & airdrop support
  • Discord ↔ Rust Chat Bridge
    Fully real-time in-game + Discord communication
  • Embed Chat System
    Delete/repost messages as modern embeds
  • Avatar Support
    Discord avatars inside embeds
  • Steam ↔ Discord Linking
    Secure account linking system
  • DM System
    Send private Discord messages to linked users
  • Presence Control
    Playing / Watching / Streaming bot activities
  • Developer API
    Interact with Discord from any plugin
  • Fully Async Architecture
    Async HTTP + WebSocket architecture

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬


⚙ Built-in Slash Commands

CommandDescription
/playersShows online players
/statusServer status (Admin only)
/discordLink Discord account
/announceBroadcast announcement
/banBan player or SteamID
/kickKick player
/unbanUnban SteamID/IP/Name
/airdropLaunch airdrops


▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬


⚡ Dynamic Command System


One of the biggest additions is the ability to dynamically create Discord slash commands directly from plugins or JS scripts.

• Receive parameters/options
• Check Discord roles
• Check admin permissions
• Send ephemeral replies
• Access Discord user information
• Trigger server events
• Reply directly to interactions


Example:

1778081007460.png



/dretaxgay target:KichDM times:4




Inside JS you receive:

• username
• globalName
• mention
• avatarUrl
• guildId
• channelId
• interactionToken
• roles
• isAdmin
• userId


▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬


Discord Chat Bridge

1777931875344.png



Configure a Discord channel as global chat:

• Discord messages appear in-game
• In-game chat appears in Discord
• Messages are automatically deleted
• Messages are reposted as embeds
• Discord avatars are displayed
• Fully real-time


▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬


sender.js (Examples & API Showcase)


1778090216756.png

Change CHANNEL_ID and guild_discord!!
⚠ Important


The included sender.js file is NOT required for the core system to work.



It exists as:


• Example plugin
• API showcase
• Developer reference
• Learning template



It demonstrates how to use:

Plugin.SendMessage()

to interact with the DiscordBOT module.

Included sender.js Examples
• Registering dynamic slash commands
• Sending embeds
• Sending DMs
• Presence control
• Interaction replies
• Role-restricted commands
• Admin commands
• Channel messaging
• Linking checks
• Broadcast systems
• Discord interaction data usage

Included sender.js Commands

CommandDescription
/discorduserinfoFetch linked Discord account information
/sendchannelSend a message directly to a Discord channel
/senddmSend private Discord DM to linked account
/islinkedCheck if Steam account is linked
/unlinkdiscordUnlink Discord account
/botonlineRefresh bot presence
/botplayingSet Playing activity
/botwatchingSet Watching activity
/botstreamSet Streaming activity
/registerdiscordcmduserRegister user slash command
/registerdiscordcmdadminRegister admin-only command
/registerdiscordcmdrolRegister role-restricted command



/discorduserinfo Example
1778088588371.png



sender.js also demonstrates:

• Dynamic interaction replies
• Discord role parsing
• Slash command callbacks
• Discord user data exposure
• Async request handling
• Presence updates
• Embed sending
• DM systems

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬


Developer API


DiscordBOT acts like a bridge API between Rust Legacy and Discord.

Plugin.SendMessage()

Using Plugin.SendMessage you can:

• Send embeds
• Send raw JSON
• Reply to Discord interactions
• Send DMs
• Create slash commands dynamically
• Update bot presence
• Build moderation systems
• Build raid/kill/join logs
• Integrate Discord into existing plugins


▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬


⚙ How It Works
• Uses official Discord Gateway API
• Real WebSocket communication
• No webhook dependency
• No command channel spam
• Fully async HTTP + WS architecture
• Real-time event handling
• Optimized for production servers


▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬


⚙ Configuration

Edit settings.json:


{
"token": "YOUR_BOT_TOKEN",
"channel_chat": "YOUR_CHAT_CHANNEL_ID"
}



▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬


Installation

  1. Create folder DiscordBOT
  2. Place DLL inside Fougerite Modules
  3. Place sender.js inside JsPlugins
  4. Configure settings.json
  5. Restart server



▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

DiscordBOT v7.2
Author
TheKichDM
Downloads
1
Views
144
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from TheKichDM

  • Recycle System
    Recycle System
    Recycle your items back into crafting materials — supports stacks, durability and multi-slot.
  • Airdrop Alert
    Airdrop Alert
    It is a simple plugin that notifies players of the airdrop's location.
  • Airdrop to RandomPlayer
    Airdrop to RandomPlayer
    This plugin randomly selects a connected player on the server and drops an airdrop near their positi
  • PM System
    PM System
    Simple and fast private messaging system
  • WebHooks System Simple
    WebHooks System Simple
    A lightweight Fougerite plugin that sends chat, join/leave, and server events to Discord via webhook

Latest updates

  1. DM Embed Support +

    Update — Discord DM Embed Support ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ Added advanced Discord DM...
  2. Improved plugin-based interaction replies

    Update — Improved Plugin-Based Interaction Replies ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ Global...
  3. Discord Guild Member Lookup

    Discord UserInfo API ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ Fetch linked Discord user information...