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.
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.