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
.jswithpackage.jsonis Node.js. A.pyfile withrequirements.txtis 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_TOKENfor Discord orTELEGRAM_BOT_TOKENfor Telegram.
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
- Create a deployment with the matching profile in Discord or Telegram hosting.
- Upload a ZIP of the project in Files, or follow the ZIP guide. Set
MAIN_FILEto the starting file. - 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.