Unlimited is €2.49/month, or €15 one-time with extra server and email benefits.
X Systems Hosting
X Systems Hosting
X Systems Help Center

Bot startup commands and environment values

Understand what starts your bot and how to fix wrong main-file or dependency settings.

Help Center / Discord Bot Hosting

Startup command

The startup command tells the container what to run. X Systems Hosting creates the server from a configured Pterodactyl egg, so a working default is normally supplied. Only change exposed startup variables when your project uses a different entry file or requires a different supported setting.

  • Node.js: point the startup file at the JavaScript entry file.
  • Python: point the startup file at the Python entry file.
  • TypeScript: point the TypeScript file setting at the .ts entry file.
  • C# / .NET: use the compiled DLL or the .csproj project file expected by the egg.
  • Luau: point the Luau file setting at the .luau entry file.
  • Java: set the JAR file to the bot JAR you uploaded or built.
  • Golang: point the Go file setting at the .go entry file used to run the bot.
  • Rust: use Cargo.toml for source projects or configure the optional compiled binary.
  • PHP: point the PHP file setting at the CLI bot entry file.
  • Keep dependency files in the location expected by the project and runtime.

Environment values

Secrets such as bot tokens, API keys, database URLs, and application IDs should be stored in environment values or a private configuration file your application is designed to read. Do not hard-code secrets into files that you plan to publish.

If the bot exits immediately

Check the console for a missing file, missing module/package, invalid token, missing environment variable, or syntax/runtime error. Fix that first error before changing server resources.