How to Make Your Own Discord Bot
Discord has an extraordinary API for writing custom bots, and a totally active bot network. today we’ll test the way to get commenced making your own.
You’ll want a chunk of programming Discord bot to code a bot, so it isn’t for anyone, but luckily there are some modules for famous languages that make it very easy to do. We’ll be using the most famous one, discord.js.
Head over to Discord’s bot portal, and create a new application.You’ll need to make a be aware of the customer identity and secret (which you should hold a secret, of course). however, this isn’t the bot, just the “application.” You’ll should add the bot below the “Bot” tab.
Make a note of this token as properly, and maintain it a mystery. Do now not, under any situations, devote this key to Github. Your bot might be hacked nearly immediately.
Install Node.js and Get Coding
We also recommend putting in the nodemon tool. It’s a command line app that monitors your bot’s code and restarts robotically on adjustments.