Unleash the power of Node.js and Discord.js
Discord is a very popular messaging and VOIP application. Mainly used by gamers, it is now very widespread and has great integration with games, launchers, and it even has a mobile app.
Like Telegram, it offers the possibility to create groups in which you can have bots that automate certain tasks. And fortunately for us, by using Discord.js, we can create these using Node.js. So let’s take a look at how to create very basic bots for us to use.
Note: This article assumes you have basic knowledge of Node.js and npm.
Like with Telegram, we need to register our bot. We need to register it in the Discord Developer portal.
Click on “New Application” and enter a name for your application. I’ve used “test-bot.” When you create the bot, you will be redirected to a page with all sorts of information on your project (such as API keys).
The side menu of the DD portal
On the left side of the screen, select the “Bot” tab. Here, you can click the “Add Bot” button to create your first bot. Click “Accept” and you will be redirected to a page on which you can alter data for your bot. We’ve now successfully registered it and can move on to our installation in the IDE.
#javascript #nodejs #react #node