Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.
Patrix87 edited this page Oct 13, 2021 · 1 revision

.env configuration

Field Notes
DGSM_TOKEN Discord Bot Token. Get one by creating a bot from the Discord Developers Portal.
DGSM_PREFIX Discord command prefix.
DGSM_ROLEID The Id of the Discord role that can manage the bot.
DGSM_CUSTOM_IMAGE_URL The url of the thumbnail used in the embed message posted by the bot.
DGSM_REFRESH_RATE How often in minutes does the bot refresh the servers information.
DGSM_ERROR_THRESHOLD How many message update errors before the bot repost everything
DGSM_PRESENCE_TYPE Bot Presence Type : 1 = display number of servers, 2 = display total players/total max players, 3 = display each server one by one.
DGSM_PRESENCE_RATE Bot Presence Refresh Rate in minutes.
DGSM_SEND_DELAY Delay in seconds between message publication or update. Avoid going lower than 2 seconds
DGSM_FIELD_XXXX Translation fields to translate the text of the embed messages.

.env example:

DGSM_TOKEN="DISCORD TOKEN HERE"
DGSM_PREFIX="!"
DGSM_ROLEID=123
DGSM_CUSTOM_IMAGE_URL=""
DGSM_REFRESH_RATE=5
DGSM_ERROR_THRESHOLD=0
DGSM_PRESENCE_TYPE=1
DGSM_PRESENCE_RATE=3
DGSM_SEND_DELAY=2
DGSM_FIELD_NAME="Name"
DGSM_FIELD_STATUS="Status"
DGSM_FIELD_ADDRESS="Address"
DGSM_FIELD_PORT="Port"
DGSM_FIELD_GAME="Game"
DGSM_FIELD_CURRENTMAP="Map"
DGSM_FIELD_PLAYERS="Players"
DGSM_FIELD_COUNTRY="Country"
DGSM_FIELD_LASTUPDATE="Last Update"
DGSM_FIELD_CUSTOM="Information"
DGSM_FIELD_PASSWORD="Password"
DGSM_FIELD_ONLINE="Online"
DGSM_FIELD_OFFLINE="Offline"
DGSM_FIELD_UNKNOWN="Unknown"
DGSM_FIELD_JOIN="Join Server"
DGSM_FIELD_LAUNCH="Launch Game"