DayZ monitoring discord bot
- Retrieves player count (including those in queue).
- Retrieves the time on the server.
- Auto update a channel with number of players on server.
Configuration can be done by controlling the below environment variables.
| Variable | Description | Required |
|---|---|---|
RUST_LOG |
Set this to the log level you want from the bot. | Optional |
DISCORD_TOKEN |
Discord bot token | Required |
SERVER_ADDRESS |
This is your query port, not the primary port. | Required |
SERVER_NAME |
Whatever you want, or empty as below | Required |
VOICE_CHANNEL_ID |
Discord ID of the channel you want updated with the player count. | Optional |
-
Edit the
docker-compose.ymlto reflect your settings and then -
Run the below
$ docker compose up- Download (or compile) the binary for your platform.
- Create a file called
.envcontaining the above configuration options. - Run the binary.
- Message Content Intent
- Send messages
- Read message history
- Manage channels (if using channel updating feature)
| Command | Alias | Description |
|---|---|---|
| !time | !t | Retrieves the current time of the DayZ server |
| !count | !c | Retrieves the current player count of the DayZ server |