How to make a discord bot?

I'm the server owner of a popular anime server, and would like to automate custom moderation alerts and welcome messages. I'm looking for a step-by-step tutorial on how to create a Discord Bot in its developer.
 
Avoid sharing your secret bot token with others online in your GitHub repository.

You have to create your bot in Developer Portal and also, you need to invite it with the proper permissions on the channel, make your script available 24/7 using Railway or Heroku, both of which provide cloud-based services to host your script for free.
 
To create a Custom Moderation Bot:

  • Go to the Discord Developer Portal
  • Go to the New Application section, click on 'Bot'
  • Reset the token
  • Use discord.py library to create event handlers, listen for any anime keywords and send out any messages automatically
 
  • Visit the Discord Developer Portal.
  • Create a new Application.
  • Add a Bot user to the Application.
  • Enable the required Privileged Gateway Intents.
  • Generate an OAuth2 authorization URL with the bot and applications.commands scopes and the required permissions (Administrator, if necessary).
  • Invite the bot to your Discord server using the authorization URL.
  • Implement the bot's logic using either Discord.py or Discord.js.
 
For the non-coders, a quick and easy trick on the way is to utilize visual bot-building tools such as BotGhost or Mee6 prior to coding. If going through the hard copy route, dance to the fan to open the Discord Developer Portal, create a bot token and pair it with a Node.js/ Python server.
 
Back
Top