- Readme
- Docs
The .env file is important for the bot to run at all. Read below how to populate its fields.
Create a bot application
- Go to your discord bot applications (https://discord.com/developers/applications/)
- Click
New Application
in top right corner - Fill in a name, and assign it to personal team.
- Click
Bot
underSETTINGS
on the menu, on the left. - Click
Add Bot
- Click
Copy
underTOKEN
- Paste the token in the .env file. Make sure it looks like the example below.
Example
CLIENT_TOKEN=MND5MTA2MzY2MzgwNzU5Fjgw.O08nDN.Bl6rIwtlAg9Hxuz8CLPD0l23sun
Decide what prefix the bot should default to on new servers.
Example
PREFIX=+
Prefix is +
Replace yourUsername
and yourPassword
with your MySQL user and password credentials
- Note: In some cases you need to change
localhost
with127.0.0.1
Example
DATABASE_URL="mysql://yourUsername:yourPassword@localhost:3306/kaikidb"
DB_HOST=localhost
DB_USER=yourUsername
DB_PASSWORD=yourPassword
DB_ROOT_PASSWORD=yourRootPassword
DB_NAME=kaikidb
- Login to https://kawaii.red/dashboard/ with your Discord account
- Reveal and copy the token
- Paste the token in the .env file. Make sure it looks like the example below.
Example
KAWAIIKEY=142788173885276162.DspDpD0isjuXAKD73vWs
Please leave this as is, unless you know what you're doing
# Bot
CLIENT_TOKEN=MND5MTA2MzY2MzgwNzU5Fjgw.O08nDN.Bl6rIwtlAg9Hxuz8CLPD0l23sun
PREFIX=+
KAWAIIKEY=142788173885276162.DspDpD0isjuXAKD73vWs
# Database
DATABASE_URL="mysql://yourUsername:yourPassword@localhost:3306/kaikidb"
DB_HOST=localhost
DB_USER=yourUsername
DB_PASSWORD=yourPassword
DB_ROOT_PASSWORD=yourRootPassword
DB_NAME=kaikidb
# Docker
NODE_DOCKER_PORT=8080
NODE_ENV=production
# Bot settings
DADBOT_MAX_LENGTH=256
DADBOT_NICKNAME_LENGTH=32
DADBOT_DEFAULT_ROLENAME=Dadbot-excluded