Configure startup to run your application
Once your files are uploaded to our infrastructure, you need to configure your hosting to correctly execute your code. This step is essential for your bot to start automatically.
From the Pterodactyl panel, go to the "Startup" tab of your server. This is where you will indicate the main file to launch.
In the "JS FILE" section (for Node.js) or "PY FILE" (for Python), enter the name of the file to execute at startup:
index.js for a classic Node.js projectbot.js if your main file is named this wayapp.py for a Python projectmain.py for a main Python script
src/index.js).
If your bot uses environment variables (such as the Discord token), you can configure them in the "Startup" tab under the variables section. Each variable can be modified directly from the panel.
After configuring the startup file, restart your server to apply the changes. Your bot should now launch automatically with the correct configuration.
If everything is in place, your bot should be online. Otherwise, our Discord community can help you!