Sample Bot

Last updated 15 August 2026

ER:LC features

Everything Sample Bot does with the Emergency Response: Liberty County Private Server API, and how it treats it.

01

What it is

Sample Bot is a Discord bot and web CAD for ER:LC roleplay communities. Each community connects its own private server with its own API key, and gets session management, staff shifts, moderation, and a computer aided dispatch system on the web.

It is used by independent Discord servers, each with their own key, their own staff and their own data. Nothing is shared between them.

02

Reading a server

Live map. Player positions, street names, postals and teams from the v2 API, drawn on PRC’s published map image. Split by service so each department sees its own units.

Sessions. Player counts and queue length, so a community can run startups, votes and shutdowns from Discord.

Shifts. On-duty time measured against who is actually in the server, with weekly quotas.

Records. Vehicles and their real plates, join and leave logs, kill logs and moderator calls, turned into a readable activity feed.

Emergency calls. 911 calls dialled in game arrive on a dispatch board with their position, description and responders.

03

Acting on a server

Only when a member of that community asks, and only within permissions their own staff team has set.

Moderation. Warnings, kicks and bans issued from the CAD or in game, each recorded with a reason and who issued it. Ban requests can be routed to somebody senior for approval rather than acted on directly.

Dispatch. Assigning a unit to a call sends that unit a short private message telling them where to go.

Sessions. Startup, shutdown and low-population announcements.

04

In-game commands

Through the event webhook, members can use short commands in chat: file a staff log, open a traffic stop, run a plate, look somebody up, acknowledge a call, or raise a panic. Replies come back as a private message to the person who asked.

05

How the API is treated

Rate limits. Every request for a server goes through a single serialised queue with a minimum spacing between calls, and a stricter one for commands than for reads. A 429 is obeyed: the Retry-After header is honoured and the request retried, and repeated limiting backs off rather than hammering. Where the v2 API can return several things in one response, one request is made instead of six.

Private messages. Used sparingly and for things a unit must be told, not as a chat channel. Each unit has a cooldown and broadcasts to everybody are capped per minute; only a panic alert bypasses either.

Keys. Encrypted at rest with AES-256-GCM, never logged, never shown back in full, and never exposed to a browser.

Removal. When the bot is removed from a Discord server, or a key is deleted, requests using that key stop.

Errors. A refused or failed request is surfaced to the community that owns the server rather than retried blindly.

06

Support

Support for people using Sample Bot is provided by us, not by Police Roleplay Community. Ask in our Discord and we will handle it.

Sample Bot is not affiliated with, endorsed by, or sponsored by Police Roleplay Community, Roblox Corporation, or Discord Inc.