Installation & Setup Guide
Select your preferred installation method below to see the correct instructions.
1
Upload Bot Files
First, we need to get the bot files onto your server.
- Open your Pterodactyl Panel.
- Navigate to the File Manager tab.
- Upload the downloaded .zip file.
- Click the three dots (⋮) next to the file and select Decompress / Unarchive.
File Structure
/home/container ├── attachments/ ├── backups/ ├── bot/ ├── dashboard/ ├── database/ ├── locales/ ├── utils/ ├── .env ├── jest.config.js ├── main.js └── package.json
2
Configure the .env File
Open the .env file in the File Manager. Replace values with your real credentials.
.env (IP Address Mode)
BOT_TOKEN=YOUR_DISCORD_BOT_TOKEN CLIENT_ID=YOUR_CLIENT_ID CLIENT_SECRET=YOUR_CLIENT_SECRET CALLBACK_URL=http://YOUR_SERVER_IP:PORT/auth/callback BASE_URL=YOUR_SERVER_IP:PORT SESSION_SECRET=RANDOM_SECRET_STRING
.env (Domain Mode)
BOT_TOKEN=YOUR_DISCORD_BOT_TOKEN CLIENT_ID=YOUR_CLIENT_ID CLIENT_SECRET=YOUR_CLIENT_SECRET CALLBACK_URL=https://your-domain.com:80/auth/callback BASE_URL=https://your-domain.com:80 SESSION_SECRET=RANDOM_SECRET_STRING
Make sure to replace
your-domain.com with your actual domain name.
Where to find keys:
- BOT_TOKEN: Discord Developer Portal → Bot → Reset Token
- CLIENT_ID: Discord Developer Portal → OAuth2
- CLIENT_SECRET: Discord Developer Portal → OAuth2
IMPORTANT: The
PORT must match the port allocated in the Pterodactyl Network tab.
3
Fix Port Binding (Required)
To ensure the dashboard works on Pterodactyl, we need to bind the port dynamically. You need to change the default port to the one assigned by your server.
- Open the file
main.js. - Scroll to line 66 (or search for
const PORT). - Replace that line completely with the code below:
JavaScript
const PORT = process.env.PORT || 3000;
4
Configure Discord OAuth2 Redirect
For the login system to work, Discord needs to know your website address.
- Go to the Discord Developer Portal.
- Open your Application.
- Navigate to the OAuth2 tab.
- Under Redirects, add the following URL:
Redirect URL (IP Mode)
http://YOUR_SERVER_IP:PORT/auth/callback
Redirect URL (Domain Mode)
https://your-domain.com:80/auth/callback
WARNING: This URL must match EXACTLY the
CALLBACK_URL you entered in your .env file.
5
Start the Bot
You are ready to launch!
- Return to your Pterodactyl Panel.
- Open the Console tab.
- Click the Start button.
If configured correctly, the console will show that the bot has logged in and the server is running.
Dashboard Access
Once the bot is running, you can access the management dashboard here:
Browser URL
http://YOUR_SERVER_IP:PORT
Browser URL
https://your-domain.com:80
Troubleshooting
Double-check that the PORT is the same in these 3 places:
- Your
.envfile - The Pterodactyl Network tab (Allocation)
- The Discord Developer Portal OAuth2 Redirects
Still having issues?
If the bot does not start or you have errors, please join our support server:
Join Discord Support
Please provide:
If the bot does not start or you have errors, please join our support server:
Join Discord Support
Please provide:
- The full console error message.
- A screenshot of your
.envfile (please blur the secrets).