Discord bots
Uploading and starting a bot, token, discord.js, logs and errors.
- 4 guides
- Discord bot: uploading code, package.json and starting the botPrepare your Node.js bot project, fill in package.json correctly, upload the files in the customer area, set up startup, check the Node.js version and start the bot.
- Discord bot: application, token, intents and safe token storageCreate an application in the Discord Developer Portal, get a token, turn on only the intents you need, invite the bot to your server and store the token safely in a .env file.
- Your first discord.js bot: a slash command step by stepWrite a discord.js 14 bot with the /ping and /pozdrav slash commands, register the commands over REST, learn to reply within 3 seconds and run the bot at StormHost.
- Discord bot: logs, restarts and fixing errorsWhere to find your bot's output, how automatic restart works, how to catch errors so the bot doesn't crash, and what the most common messages mean, from Cannot find module to Missing Permissions.
Related elsewhere
Can't find a guide? Write to us:[email protected]or on DiscordDiscord