DiscordBOT + API

DiscordBOT + API 4.5

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

Discord BOT API

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

Complete bridge between Rust Legacy (Fougerite) and Discord

Preview

Real integration working on server + Discord




1777722747681.png
1777722751746.png
1777722760177.png



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

Description


Discord BOT API is a modular communication system that connects your Rust Legacy server with Discord in real time.
It allows commands, private messages, broadcasts, and full cross-plugin integration through a simple API system.



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

✨ Features

  • Two-way communication — send and receive commands between Discord and server
  • Account linking system — securely link SteamID with Discord user
  • Private DM system — send direct messages to players via Discord
  • Global broadcast — send messages to all linked users instantly
  • Channel messaging — send messages directly to any Discord channel
  • Cross-plugin API — other plugins can interact with Discord easily
  • Persistent linking — accounts saved and loaded automatically
  • Lightweight polling system — efficient and stable (2s default)

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

Included Example Plugin


This release includes a ready-to-use example plugin called:


sender.js


This file demonstrates how to use the Discord API from another plugin.

It contains working commands such as:



  • /islinked — check if player is linked
  • /senddm — send a Discord DM
  • /alertall — broadcast to all linked users
  • /sendchannel — send message to Discord channel
  • /discordid — get Discord ID
  • /unlinkdiscord — unlink account

This plugin is meant as a base template for developers.


You can copy, modify and integrate it into your own plugins easily.


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

⚙ API Actions

Available via Plugin.SendMessage

ActionDescription
isLinkedCheck if SteamID is linked to Discord
sendDMSend private message to linked user
broadcastDMSend message to ALL linked users
sendChannelMessageSend message to specific Discord channel
getDiscordIdGet Discord user ID from SteamID
unlinkUnlink Discord account

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

Linking System

  • User runs /discord in Discord channel
  • Bot sends unique code via DM
  • User types /discord CODE in Rust
  • Account linked successfully

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

⚙ Configuration

Edit settings.json:


{
"token": "YOUR_BOT_TOKEN",
"channel_commands": "CHANNEL_ID",
"command_prefix": "/",
"poll_interval": 2000
}



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

Installation

  1. Place the DiscordBOT module in Fougerite Modules
  2. Place sender.js inside JsPlugins folder
  3. Configure settings.json
  4. Restart server
  5. Invite your bot to Discord server


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

Powerful. Modular. Developer-friendly.
Author
TheKichDM
Downloads
1
Views
23
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from TheKichDM

  • Remove Mods Weapon
    Remove Mods Weapon
    Quickly remove all mods from your active weapon with a single command.
  • WebHooks System Simple
    WebHooks System Simple
    A lightweight Fougerite plugin that sends chat, join/leave, and server events to Discord via webhook
  • Money / Shop Basic System
    Money / Shop Basic System
    A complete economy system for Rust Legacy adding money, shop and rewards.
  • Airdrop to RandomPlayer
    Airdrop to RandomPlayer
    This plugin randomly selects a connected player on the server and drops an airdrop near their positi
  • Airdrop Alert
    Airdrop Alert
    It is a simple plugin that notifies players of the airdrop's location.

Latest updates

  1. Discord Embed Support for Sender API

    Discord Embed Support ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ Rich embed messages are now supported in...
  2. Add Custom Command Creation via API

    Update: Dynamic Command System ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ ✨ New Feature You can now...