Hosting operations2 minutes to read

I built a bot with ChatGPT or Claude. Where do I host it?

Turn AI-generated Discord or Telegram bot code into a running bot: check the files, add the token safely, pick a runtime and get a first reply.

Upload it to a bot host and add the token as a variable

Put the generated project on a bot host that runs the language it is written in. Bothosting’s free Spark plan runs one discord.js, discord.py, Telegram or other Node.js or Python bot. Upload the files, save the bot token in Variables rather than in the code, set the entry file and press Start. Then fix anything the console reports.

Check what the AI gave you

  • Language. A file ending in .js with package.json is Node.js. A .py file with requirements.txt is Python.
  • Dependencies. Ask the assistant for the dependency file if it only gave you code. Without it, the host cannot install discord.js, discord.py or aiogram.
  • Token. If the token is pasted into the code, move it out. Read it from BOT_TOKEN for Discord or TELEGRAM_BOT_TOKEN for Telegram.
Ask your assistant
Read the bot token from the BOT_TOKEN environment variable,
give me requirements.txt (or package.json), and tell me which
file starts the bot.

Deploy and get a first reply

  1. Create a deployment with the matching profile in Discord or Telegram hosting.
  2. Upload a ZIP of the project in Files, or follow the ZIP guide. Set MAIN_FILE to the starting file.
  3. Save the token in Variables, start the deployment and watch Console. Send one command in a test chat.

When the console shows an error

Copy the first error line, not the last, back to your assistant together with the file it names. Common causes are a missing package (Python module not found), a disabled Discord intent (bot ignores messages) or a webhook left over on a Telegram token. You can also connect the assistant straight to the deployment so it can read the logs itself. See deploying with an AI coding agent.