- Discord Bot Token Guide
- Node.js v14.0.0 or Newer
- MySQL Database Free MySQL Database
- A LOT OF API Keys
To Install Packages needed for the Bot, Go to Console and Type
npm install
or Run the install.bat File
.env varriable |
Description | Required |
|---|---|---|
| TOKEN | The bot token (Remember! The TOKEN is super secret) |
✔️ |
| PREFIX | The default bot prefix (eg. >>) |
✔️ |
| ID | Your Discord Bot ID | ✔️ |
| AMEAPI | Your Amethyste api token | ✔️ |
| BRAINID | Your Brainshop AI Brain ID | ✔️ |
| MYSQL_DATABASE | Your MYSQL Database Name | ✔️ |
| MYSQL_HOST | Your MYSQL Database Host | ✔️ |
| MYSQL_USER | Your MYSQL Database Username | ✔️ |
| MYSQL_PASSWORD | Your MYSQL Database Password | ✔️ |
| GENIUS | Your genius API Key | ✔️ |
| DOMAIN | Your website domain (eg https://example.com)* |
❌/✔️ |
| PORT | Your webiste port, (eg. 8008 )* |
❌/✔️ |
| DASHBOARD | The Web-Dashboard config value. (eg. true/false, default value: false)* |
❌ |
| SESSION_SECRET | The Bot Client Secret (Remember! The SECRET value is Super-Secret)* |
❌/✔️ |
| SECRET | The Bot Client Secret (Remember! The SECRET value is Super-Secret)* |
❌/✔️ |
| ANALYTICS | Google analytics tracking ID, used in Web-Dashboard | ❌ |
| RECAPTCHA_KEY | Google recaptcha v2 key* |
❌/✔️ |
| COOKIES | Your youtube cookies | ✔️ |
| CONTACT_WEBHOOK_ID | Your contact form webhook ID | ✔️ |
| CONTACT_WEBHOOK_TOKEN | Your contact form webhook token | ✔️ |
| STATUS_WEBHOOK_ID | Your status webhook ID | ✔️ |
| STATUS_WEBHOOK_TOKEN | Your status webhook token | ✔️ |
*= Required to run the web dashboard!
# Environment Config
# Required
TOKEN=YOUR_TOKEN_GOES_HERE
PREFIX=>>
ID=YOUR_BOT_ID
AMEAPI=YOUR_AMETHYSTE_API_TOKEN
MYSQL_DATABASE=YOUR_MYSQL_DATABASE_NAME
MYSQL_HOST=YOUR_MYSQL_HOST
MYSQL_PASSWORD=YOUR_MYSQL_USER_PASSWORD
MYSQL_USER=YOUR_MYSQL_DATABASE_USER
BRAINID=YOUR_BRAINSHOP_AI_BRAIN_ID
BRAINKEY=YOUR_BRAINSHOP_AI_BRAIN_KEY
GENIUS=YOUR_GENIUS_API_KEY
CONTACT_WEBHOOK_TOKEN=YOUR_CONTACT_FORM_WEBHOOK_TOKEN
CONTACT_WEBHOOK_ID=YOUR_CONTACT_FORM_WEBHOOK_ID
STATUS_WEBHOOK_TOKEN=YOUR_STATUS_WEBHOOK_TOKEN
STATUS_WEBHOOK_ID=YOUR_STATUS_WEBHOOK_ID
COOKIES=YOUR_YOUTUBE_COOKIES
RECAPTCHA_KEY=YOUR_RECAPTCHA_KEY
# Not required
DASHBOARD=[true/false]
DOMAIN=YOUR_WEBSITE_DOMAIN
PORT=YOUR_WEBSITE_PORT
SESSION_SECRET=YOUR_SESSION_SECRET_(RANDOM_WORDS)
SECRET=YOUR_BOT_CLIENT_SECRET
ANALYTICS=YOUR_GOOGLE_TRACKING_ID
# Note: >> is the default prefix, you can change it later.
If you are Using Replit then Run This Command in Shell to Upgrade your Node Version to Node 14
npm init -y && npm i --save-dev node@14 && npm config set prefix=$(pwd)/node_modules/node && export PATH=$(pwd)/node_modules/node/bin:$PATH
- In
.envfile set theDASHBOARDconfig totrueand assign thePORTeg.8080. (See example.envfile) - Fill dashboard config in (
config.jsand.env) - Add the redirect uri here: https://discord.com/developers/applications/YOUR-BOT-ID/oauth2
https://your-domain.com https://your-domain.com/callback https://your-domain.com/dashboard https://your-domain.com/login - Run
npm run dashboardin your terminal - If everyting is ok go to your dashboard in browser (eg. to
localhost:8000)
Note: See the example
.envfile below!
If you are hosting the site locally it is best to generate certificates for it. If you have them:
- Change
certs: false&localhost: falsevalues inconfig.jsto true- Place the
server.cert&server.keycerts in/dashboard/certs/directory
Open Console and Type
npm start
or You can Run start.bat File to Start the Bot
🔮 General Commands
🤣 Fun Commands
🌟 Image Processing Commands
📜 Moderation Commands
🎉 Owner Commands
⚙️ Utility Commands
- Fork the repository
- Clone your fork:
git clone https://github.com/DarkThunder99/Bot-with-Dashboard.git
This Bot is Edited Version on Majo Bot