How to connect your ER:LC server to Discord

Connecting your ER:LC private server to Discord lets a bot read who is in game, see kills and 911 calls, and run commands. With Sample Bot it takes about a minute.

01

What do I need?

An ER:LC private server that you own or manage, a Discord server, and Sample Bot added to it. Sample Bot uses PRC’s official ER:LC API, so nothing is installed in the game.

02

Step by step

  1. In ER:LC, open your private server settings and copy the server key.
  2. In Discord, type /config and open Connections, or use samplebot.app/config.
  3. Paste the key. The bot checks it straight away and tells you if it works.
  4. For the live CAD and instant events, paste the event webhook address from setup into ER:LC too. Setup shows you where.
03

What can the bot do once it is connected?

  • Player counts, the queue and the join code.
  • Join logs, kill logs, 911 calls and mod calls in Discord.
  • In game moderation: warns, kicks and bans from Discord.
  • Shifts that check staff are really in game.
  • With Sample Plus+, a CAD with a live map of every player.
04

Is my server key safe?

The key is encrypted and only used for your server. If you ever think it leaked, make a new one in ER:LC and paste that instead.

05

It says the key does not work. What now?

Check that you copied the whole key with no spaces, and that the private server is the one you meant. If it still fails, ask in the support server, or look at the ER:LC API status to see if the API itself is down.

Keep reading