codea.live
Search…
Config
A guide on how to configure 6PG, a Discord bot maker, for your projects needs, and an explanation on what each environment variable means.

.env Template

Development
This template would go in the root project folder, and is used for the main application.
Port 3000 is commonly used by many Node.js applications. Port 4200 is for the dashboard, running on an Angular development server.
.env
1
API_URL="http://localhost:3000/api"
2
CLIENT_ID="533947001578979328"
3
CLIENT_SECRET=""
4
DASHBOARD_URL="http://localhost:4200"
5
ENCRYPTION_KEY="something secure"
6
MONGO_URI="mongodb://localhost/6PG"
7
PORT=3000
Copied!

How do I get these values?

Most required options are linked below as 6PG shares common .env values with 2PG.

Required Variables

ENCRYPTION_KEY

This is used for encrypting and decrypting bot tokens in the database. Make sure you keep this value safe, as it can be used to retrieve bot tokens.
Last modified 8mo ago