The .env file is important for the bot to run at all. Read below how to populate its fields.
Create a bot application
New Application
in top right cornerBot
under SETTINGS
on the menu, on the left.Add Bot
Copy
under TOKEN
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
localhost
with 127.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
Example
KAWAIIKEY=142788173885276162.DspDpD0isjuXAKD73vWs
Requires a running clone of https://github.com/cataDev0/kaikibot.xyz/
The port the website is using
SELF_API_PORT=3636
Specify a secret the dashboard uses to communicate
SELF_API_TOKEN=
The url including endpoint where the bot will upload the commandlist to
CMDLIST_URL=
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