GAwesome Bot: the best Discord bot!

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.

Getting started

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

To run Javascript code out of doors of a webpage, you need Node. download it, install it, and make sure it really works in a terminal (or Command spark off, as all of this must work on windows structures). The default command is “node.”

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.