
You have now created a Discord application. You can also rename the application and provide a description for your bot at this point and press “Save Changes”. You can come back later and get it from this page, or copy it somewhere where you can easily find it later. The first thing to do on the next page is to note your Client ID, which you’ll need to add the bot to the server. Image: 1 Creating a new Discord applicationįill out a name for your bot and select “Create”. Visit the Discord developer’s page and press the “New application” button, as in the image below. Once you have an account, you’ll want to create a Discord application. You can sign up for a free account over at the Discord register page, and can download one of their desktop or mobile applications from the Discord homepage. Creating a bot in Discord and getting a token Let’s get through these admin steps first and then we can get to the fun part of coding our bot. In this tutorial, we will be covering: * Creating an application and a bot user in your Discord account * Creating a server on Discord * Adding our bot to our Discord server There are instructions for how to do this in the next section. For this tutorial you will need to create a Discord account (if you already have one, you can skip this). We’ll be doing all of our coding through the web IDE and hosting our bot with as well, so you won’t need to install any additional software on your machine. We won’t be covering the very basics of JavaScript, but we will explain each line of code in detail, so if you have any experience with programming, you should be able to follow along.

You’ll find it easier to follow along if you have some JavaScript knowledge and have used Discord or a similar app such as Skype or Telegram before.


If you don’t like JavaScript, there’s also a Python version of this tutorial in the previous chapter. The bot we create in this tutorial will be able to join a Discord server and respond to messages sent by people. If not, Discord is a VoIP and Chat application that is designed to replace Skype for gamers.

If you’re reading this tutorial, you probably have at least heard of Discord and likely have an existing account. In this tutorial, we’ll use and Node.js to build a Discord Chatbot. Building a Discord bot with Node.js and Building a Discord bot with Node.js and
