Environment Variables Explained
This guide will explain how to format the environment file for DoppelBot.
Before we start...
This guide makes sure you've followed the steps in the Getting Started guide and copied the example from the repository to a .env file.
DoppelBot uses some environment variables which must be stored in the .env file. The file must be created at the root folder of the bot, where your index.js file is located.
Variables Cheat Sheet
| Variable | Description | Example |
|---|---|---|
NAME |
The username. Required. |
NAME=DoppelBot |
TOKEN |
The bot token. Get the token hereand store it in a safe place. Never share your token with anyone, including the developers. Required. |
TOKEN=xxx |
CLIENTID |
The Discord application ID. Get it here. Required for deploying commands. |
CLIENTID=000 |
OWNERS |
The user ID(s) of the bot owner(s). The list must be comma-separated. Owners have access to special administrator features. Required. |
OWNERS=000,111 |
AVATAR |
The avatar. Can be a path to a file or a link. Optional, will use Discord's default avatar if not set. |
AVATAR=./avatar.png |
ACTIVITIES |
A list of possible bot status messages. The list must be comma-separated. Optional, status will be empty if not set. |
ACTIVITIES=Portal 2, Team Fortress 2 |
TELEMETRY |
Activates Sentry. Accepts only true and false values.Optional, defaults to false. |
TELEMETRY=true |
DEBUG |
Activates Debug Mode. Accepts only true and false values.Optional, defaults to false. |
DEBUG=true |