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.

  1. Open your Pterodactyl Panel.
  2. Navigate to the File Manager tab.
  3. Upload the downloaded .zip file.
  4. 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
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.

  1. Open the file main.js.
  2. Scroll to line 66 (or search for const PORT).
  3. 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.

  1. Go to the Discord Developer Portal.
  2. Open your Application.
  3. Navigate to the OAuth2 tab.
  4. Under Redirects, add the following URL:
Redirect URL (IP Mode)
http://YOUR_SERVER_IP:PORT/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!

  1. Return to your Pterodactyl Panel.
  2. Open the Console tab.
  3. 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

Troubleshooting

Double-check that the PORT is the same in these 3 places:

Still having issues?
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 .env file (please blur the secrets).