Setup Guides

Everything you need to configure after your initial install — smart devices, channels, roles, and more.

🔔 Pairing a Smart Alarm

Smart Alarms let the bot send raid alerts to your Discord alerts channel. Each alarm must be registered with its in-game entity ID using /addalarm.

Step 1

Place and pair a Smart Alarm in Rust

Craft and place a Smart Alarm in your base. Open the Rust+ mobile app, pair the alarm to your server, and ensure it shows as active. The alarm must be powered and paired before the bot can receive its events.

Step 2

Find the Entity ID in-game

Open the F1 console in Rust and run the command below. Then close the console, look directly at your Smart Alarm, and press O. The entity ID will appear on-screen.

F1 Console — Rust
> bind o lookingat_debug
 
[Look at your Smart Alarm and press O]
 
Entity ID: 1234567
 
> _

Step 3

Register it with /addalarm

In your Discord server, run the slash command with the entity ID you found. Give it a memorable name so you can identify it later.

# rust-alerts — RustyCordBot
# general
# rust-alerts
# rust-events
# rust-chat
YN
YourName
/addalarm entityid:1234567 name:Main Base Alarm
🦀 RustyCordBot BOT
✅ Alarm Added
Alarm 'Main Base Alarm' (ID: 1234567) added.
🔒 Only you can see this · Dismiss message

Step 4

Verify with /listalarms

Run /listalarms to confirm your alarm appears in the list with the correct name and entity ID. When the alarm fires in-game, the bot will post a notification to your configured alerts channel.

Frequently Asked Questions

The entity ID isn't appearing on screen
Make sure you used bind o lookingat_debug in the F1 console first. You need to be looking directly at the alarm — not through a wall or at an angle. Try getting closer to the device.
The alarm fires but no Discord notification appears
Check that DISCORD_ALERTS_CHANNEL_ID is configured for your tenant. Run /listalarms to confirm the alarm is registered. Also make sure the alarm is powered and paired in the Rust+ app.

🔌 Pairing a Smart Switch

Smart Switches let you toggle in-game electrical devices from Discord using /switch. Pair turrets, lights, auto-turrets — anything wired to a switch.

Step 1

Place a Smart Switch in Rust

Craft and place the switch in your base. Wire it to the device you want to control — auto-turrets, SAM sites, lighting rigs, etc. The switch must be powered and paired in the Rust+ mobile app.

Step 2

Find the Entity ID

Same process as alarms: open the F1 console, run bind o lookingat_debug, close the console, look directly at your Smart Switch, and press O. Note the entity ID that appears.

Step 3

Register it with /addswitch

Run the slash command in Discord with your entity ID and a descriptive name.

# rust-alerts — RustyCordBot
# general
# rust-alerts
# rust-events
# rust-chat
YN
YourName
/addswitch entityid:7654321 name:Turret Power
🦀 RustyCordBot BOT
✅ Switch Added
Switch 'Turret Power' (ID: 7654321) added.
🔒 Only you can see this · Dismiss message

Step 4

Control it with /switch

Toggle your switch on or off directly from Discord. The bot confirms the state change in an ephemeral reply.

# rust-alerts — RustyCordBot
# general
# rust-alerts
# rust-events
# rust-chat
YN
YourName
/switch entityid:7654321 state:on
🦀 RustyCordBot BOT
🔌 Switch Toggled
Turret Power (ID: 7654321) → 🟢 ON
🔒 Only you can see this · Dismiss message

Step 5

Verify with /listswitches

Run /listswitches to see all registered switches and their current state. Use this to confirm your switch was registered correctly and check live states at a glance.

Frequently Asked Questions

I ran /addswitch but /switch says it can't find the entity
Make sure you used the correct entity ID. Entity IDs reset every wipe — you'll need to re-register your switches after each server wipe using the new IDs. See the After a Wipe guide below.
The switch toggles in Discord but nothing happens in-game
Confirm the switch is wired correctly to the device and the circuit has power in-game. Also verify the switch is paired in the Rust+ mobile app and shows as active.

📢 Setting Up Discord Channels

RustyCordBot uses up to 4 separate Discord channels. You configure them during the wizard, but here's how to create them and find their IDs.

Step 1

Create the 4 recommended channels

In your Discord server, create the following text channels before starting the wizard. You can name them anything — these are the recommended names.

#rust-chat
Rust ↔ Discord team chat relay
#rust-alerts
Raid alarms and smart alarm notifications
#rust-events
Team events, map events, BattleMetrics alerts
#rust-status
Bot online/offline status messages

Step 2

Enable Developer Mode in Discord

To copy channel IDs, you need Developer Mode enabled. Go to User Settings → Advanced → Developer Mode and toggle it ON. This is a one-time setting.

Step 3

Copy a Channel ID

Right-click any channel name in your server → "Copy Channel ID". Paste it into the corresponding field in the setup wizard.

💡 Tip: You can reuse one channel for multiple purposes — e.g. use #rust-alerts for both alerts and events. The bot will post all configured notification types to the same channel.

Frequently Asked Questions

I don't see "Copy Channel ID" when I right-click
You need Developer Mode enabled. Go to Discord Settings → Advanced → Developer Mode and toggle it on. The option will appear the next time you right-click a channel.
Can I change my channel IDs after signup?
Yes — use /botwipe in Discord. It provides a one-time link to the update form where you can change any credential including channel IDs.

🔐 Setting Up an Admin Role

The Admin Role controls who can run management commands like /addalarm, /addswitch, /botrestart, and target server management. Without it, only the Discord server owner can run these commands.

Step 1

Create a role in Discord

Go to Server Settings → Roles → Create Role. Name it something like RustBot Admin. Assign it to the team members who should have bot management access.

Step 2

Copy the Role ID

With Developer Mode enabled, right-click the role name (in Server Settings → Roles, or in a user's profile) → "Copy Role ID".

Step 3

Enter it in the wizard

Paste the Role ID into the Admin Role ID field in Step 3 of the setup wizard. This unlocks all admin-only commands for members with that role.

Frequently Asked Questions

I didn't set an Admin Role — who has access?
Only the Discord server owner can run admin commands. Set an Admin Role ID to delegate access to your squadmates.
Can I have multiple admin roles?
Currently one role is supported. Add all admins to that single role, or use the server owner account for admin tasks that the role can't cover.

🎯 BattleMetrics Target Tracking

BattleMetrics tracking lets you get real-time alerts when specific enemy players go online or offline on your server. Requires the BATTLEMETRICS_API_TOKEN environment variable to be set on the bot host.

Step 1

Get a BattleMetrics API Token

Visit battlemetrics.com/developers, sign in, and generate a free API token. This is set by your bot host as an environment variable — if you're on the hosted service, contact support to have it enabled for your account.

Step 2

Add a BattleMetrics server

In Discord, run the command below. Autocomplete will search BattleMetrics for matching servers — select yours from the list.

/target server add server:<type your server name>

Step 3

Add a target player

Run the command below. Autocomplete searches for the player by name on that server. Select the correct player from the suggestions.

/target add server:<your server> player:<player name>

Step 4

What alerts look like

When a tracked player goes online or offline, an embed is posted to your configured Events channel.

# rust-events — RustyCordBot
# general
# rust-alerts
# rust-events
# rust-chat
🦀 RustyCordBot BOT
🎯 Target Online
Player: SomeEnemy
Server: Rust Main — EU
Status: 🟢 Online

Step 5

Manage targets

Use the following commands to manage your tracked players and servers:

/target list
See all tracked players
/target remove
Stop tracking a player
/target server list
See registered BattleMetrics servers
/target server remove
Remove a tracked server

Frequently Asked Questions

Autocomplete shows no results
Try a broader search term — BattleMetrics autocomplete searches by server name. Also confirm your bot host has BATTLEMETRICS_API_TOKEN set. Contact support if you're on the hosted service.
I'm not getting alerts
Confirm your Events channel (channel_events) is configured. The tracker polls every 60 seconds — allow up to 2 minutes after a player joins before expecting an alert.
Offline alerts seem delayed
This is by design. The bot requires 2 consecutive polling misses before posting an offline alert. This prevents false alarms from brief API blips or temporary connectivity issues.

🔄 After a Server Wipe

Every time Rust wipes to a new map, your Rust+ credentials and Smart Entity IDs change and must be updated.

What changes each wipe

Credentials and IDs that reset

These must be updated after every wipe:

Item Changes on wipe?
Server IP / App Port YES — if server moved
Player Token YES — always resets
Smart Alarm entity IDs YES — always resets
Smart Switch entity IDs YES — always resets
Discord bot token / Client ID / Guild ID NO — stays the same
Discord channel IDs NO — stays the same
Your subscription NO — stays the same

Two-step wipe process

Update credentials, then re-register devices

Follow these two steps in order after every wipe:

  1. Run /botwipe in Discord to update your Rust+ credentials (Server IP, App Port, Player Token). This gives you a one-time link to the update form. Full walkthrough below.
  2. Re-register your Smart Alarms and Switches using /addalarm and /addswitch with the new entity IDs from this wipe. See the Smart Alarm and Smart Switch guides above for how to find the new IDs.
🔄 Full Wipe Guide → ↑ Back to Smart Alarm Guide
💬 Need help? Email us at support@rustycordbot.com  ·  Terms