Projects

nytrex-labs / rust-bot

BETA TESTbetaGitHub

Rust Bot

Discord Bot // Rust+ raid alerts

When a Smart Alarm fires in your Rust base, Rust Bot posts a raid alert into your team's Discord channel and pings your raid role — within seconds. Server and alarm pairing happen inside Discord using each teammate's own Rust+ account, so there is no manual credential wrangling. It keeps a persistent Rust+ connection, reconnects on drop, and only makes outbound connections (no ports to open).

README.md

Project objective

The beta is focused on reliable raid alerts from Rust+ Smart Alarms, in-Discord pairing, and the staff controls Rust admins actually use.

Current scope

Real-time raid alerts

A Smart Alarm trigger becomes a channel post and role ping within seconds.

In-Discord pairing

Pair your server and each Smart Alarm from slash commands — no JSON editing.

Per-user account linking

Each teammate links their own Rust+ account through the hosted Nytrex setup page.

Operator gating

Sensitive commands require Manage Server permission or a configured operator role.

Auto-reconnect

Holds a persistent Rust+ connection and recovers automatically if it drops.

DJ DAN integration

When a raid fires it can mute the music bot so the alert is never drowned out.

Repository snapshot

README.md

Overview, full command reference, configuration, and setup.

src/discord/

Discord client, /raid slash commands, and raid-alert formatting.

src/rustplus/client.js

Rust+ connection, Smart Alarm subscription, and auto-reconnect.

src/pairing/

Encrypted account linking and the FCM pairing-notification listener.

src/pipeline/raid-incident.js

Turns an alarm trigger into a posted Discord raid alert.

DEPLOY.md

Oracle Cloud (Always Free ARM) + PM2 deployment guide.

Command reference

/raid status

Rust+ connection, alarm count, linked accounts, and the alert channel/role.

/raid pair-server

Pair your Rust server using your linked Rust+ account. (operator)

/raid pair-alarm

Pair a Smart Alarm so its triggers raise raid alerts. (operator)

/raid test

Send a test raid alert to the configured channel. (operator)

/raid link

Start linking your own Steam/Rust+ account (encrypted).

/raid alarms

List the Smart Alarms currently being monitored.

Beta protocol

01

Invite the bot

Add Rust Bot to a server you control using the beta invite.

02

Set channel & role

Choose where raid alerts post and which role gets pinged.

03

Link your Rust+ account

Run /raid link and follow the encrypted account-link steps.

04

Pair server & alarms

Use /raid pair-server then /raid pair-alarm to go live.

Known beta limits

Access is invite-only while the beta is being tested and tuned.

Your server needs Rust+ enabled with at least one Smart Alarm.

After a Rust map wipe, the server and alarms need re-pairing.