Now that we've set up a bot on our Discord server, let's write some code to get it do some fun stuff.
We're going to set up a new project and use the Discord.js
library. While setting up this project you'll learn how to properly configure the client and log in to your bot by passing a Discord API token to client.login
.
Once the project is set up we'll send our first event using the client.once
and event, and set up some scripts so that we can start the bot using yarn.
Throughout the lesson, you will be introduced to important concepts and best practices for building Discord bots. By the end of the lesson, you will have a basic understanding of how to create a simple bot and be ready to continue building