This repository contains a tutorial series on how to create a Discord bot using NodeJS and Discord.JS library. The tutorial is designed for beginners who are interested in building a Discord bot and want to learn more about the process.
This series covers the following topics:
- Basic setup and installation of NodeJS and Discord.JS library.
- Creating a Discord bot and setting up a bot token.
- Responding to commands and messages.
- Handling events and errors.
- Advanced features like embeds, reactions, and more.
Before you begin, make sure you have the following:
- Basic understanding of JavaScript.
- Basic knowledge of NodeJS and NPM.
- A Discord account and a server where you have permission to create a bot.
To get started, follow these steps:
- Clone this repository to your local machine.
- Install NodeJS and IDE (like VSCode) if you haven't already.
- Install dependencies by running
npm install
in the terminal. - Create a new Discord bot and get a token.
- Set up your bot token in a
.env
file or system environment variable. - Run the bot with
node src/index.js
ornpm run dev
.
To configure your bot, you can modify the src/config.js
file included in the repository. This file includes settings for your bot prefix, status, and more. You can also add your own configuration settings as needed.
The tutorial series is available on the M7rlin YouTube channel. The tutorial is designed to be followed in order, starting with the basics and gradually building up to more advanced features.
This tutorial series is completely free to use and learn from. However, if you find it useful and would like to support the creator, you can do so by donating via PayPal or Buymeacoffe.
This tutorial series was created by M7rlin, with contributions from the Discord.JS community.
© 2023-PRESENT Marcin Stawowczyk
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.