Discord bots and apps

Upload and start a bot, choose Node.js or Python, install dependencies, keep the token safe, stay online, read logs and fix the classic errors.

7 guidesabout 7 min reading

  1. 01Upload your bot and start itFrom a folder on your PC to a running bot in five minutes: file layout, the start file variable, and what the first start does.1 min read
  2. 02Node.js, Python or Java: picking and changing the runtimeWhich server type runs what, how to change the Node/Python version, and how to run a Java bot.1 min read
  3. 03Install dependenciespackage.json and requirements.txt do the work on every start; here is how to make that reliable and fast.1 min read
  4. 04Keep your token safeWhere to store the bot token, what to do if it leaks, and why invited users should not see your .env.1 min read
  5. 05Keep the bot online 24/7 and restart it automaticallyWhat happens when your bot crashes, how to handle reconnects in code, and a nightly restart schedule.1 min read
  6. 06Read logs and debug crashesWhere your bot's output goes, reading a Node or Python stack trace from the bottom up, and asking Kowalski to explain it.1 min read
  7. 07Typical errors: wrong Node version, missing intents, wrong start fileThe five setup mistakes behind most bot tickets and the one-line fix for each.1 min read