Ко всем руководствам

Discord Bot

How do you upload your Discord bot?

Upload your files, set the start command and get your bot running.

You can upload your bot files from the panel or pull them from a Git repository. You set the start command in the plan settings.

Entry file

Node.js bots usually use index.js and Python bots use main.py. The start command of your plan must point at that file.

node index.js
python3 main.py
java -jar bot.jar

Dependencies

If you upload package.json or requirements.txt, dependencies are installed automatically on the first run.

Token safety

Never hard code your bot token. Define it as an environment variable. A token written into the source is compromised the moment you share your files.

const token = process.env.DISCORD_TOKEN;
client.login(token);

If your token leaks, reset it in the Discord developer portal immediately. A leaked token hands your bot to someone else.

Если это руководство не помогло

Создайте обращение в панели — мы ответим, видя ваш сервер и историю заказов.