
- #MAKE A CHATBOT APP WITH NODE JS 2018 HOW TO#
- #MAKE A CHATBOT APP WITH NODE JS 2018 INSTALL#
- #MAKE A CHATBOT APP WITH NODE JS 2018 CODE#
Press "Create a server" in the screen that follows, and then give your server a name. Press the "+" icon indicated by the exclamation mark, as shown below, to create a server. If you don't have a Discord server to add your bot to, you can create one by either opening the desktop Discord application that you downloaded earlier or returning to the Discord home page in your browser.

#MAKE A CHATBOT APP WITH NODE JS 2018 CODE#
Take note of your token or copy it to your clipboard, as we'll need to add it to our code soon. You can get the token by pressing "Click to Reveal Token", or copy it to your clipboard without seeing it by pressing "Copy". Anyone who has the bot's token can prove that they own the bot, so you'll need to be careful not to share this with anyone. The last thing we'll need from our bot is a Token. Click "Yes, do it" when Discord asks if you're sure about bringing a new bot to life. The next step is to add a bot to this application, so head over to the "Bot" tab using the menu on the left and press the "Add Bot" button, as indicated below. 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. Visit the Discord developer's page and press the "New application" button, as in the image below.įill out a name for your bot and select "Create". 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. Creating an application and a bot user in your Discord account.
#MAKE A CHATBOT APP WITH NODE JS 2018 HOW TO#
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).
#MAKE A CHATBOT APP WITH NODE JS 2018 INSTALL#
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 Node.js, 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 you should 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. The bot will be able to join a Discord server and respond to messages sent by people. In this tutorial, we'll use and Node.js to build a Discord Chatbot.
