Configure Environment Variables
- Create a text file named .env in your project root (that's the base folder of your repository):
- Unix/Git Bash:
touch /path/to/project/.env
- Windows CMD:
type nul > \path\to\project\.env
(The error The system cannot find the file specified can be safely ignored.)Note: The entire file name is literally
.env
- Unix/Git Bash:
- Open the file with any text editor.
- Each environment variable is on its own line, with the variable and the value separated by a
=
sign.
Example:
- Set the environment variable
SEASONALBOT_DEBUG
toTrue
:
SEASONALBOT_DEBUG=True
- Set the environment variable
CHANNEL_ANNOUNCEMENTS
to12345
:
CHANNEL_ANNOUNCEMENTS=12345