Node.js Bot Hosting

Our Node.js containers come pre-installed with npm and yarn. We support multiple Node versions (16, 18, 20, 22) which you can select dynamically in the Startup tab.

1. Uploading Your Files

  1. Upload your bot files (index.js, commands folder, etc.) via the Web File Manager or SFTP.
  2. Upload your package.json file.
  3. CRITICAL: Do NOT upload your node_modules folder! It takes forever to transfer and can break due to Windows/Linux OS differences.
  4. The panel will automatically run npm install on startup if it detects a package.json.

2. Securing Your Tokens (.env)

Never hardcode your Discord Bot Token or API keys directly into your code. Use environment variables.

Create a file named .env in your root directory:

DISCORD_TOKEN=MTA... (your token here) CLIENT_ID=123456789 MONGO_URI=mongodb://...

In your code, use the dotenv package to load these variables securely:

require('dotenv').config(); const { Client } = require('discord.js'); const client = new Client({ intents: [] }); client.login(process.env.DISCORD_TOKEN);

3. Startup Configuration

In the Startup tab, ensure the Main File variable is set to your entry point (e.g., index.js or bot.js). The container will execute node <Main File>.

Git Auto-Deployment

You can connect your Game Panel directly to a GitHub/GitLab repository in the Settings tab. Just paste your repo URL and PAT (Personal Access Token), and click "Pull" to update your bot instantly!