A Discord bot built with Node.js and TypeScript using the Discord.js library.
Before you begin, ensure you have met the following requirements:
- Node.js: Ensure you have Node.js 16 or higher installed. You can download it from nodejs.org.
-
Clone this Repository:
- Download or clone this repository to your local machine.
-
Navigate to the Project Directory:
- Open a terminal or command prompt.
- Change your working directory to the location where you downloaded or cloned the project.
-
Install Dependencies:
- Run
npm install
to install project dependencies.
- Run
-
Configure Bot Token:
- Create a
.env
file. - Follow the
.env.example
file and replace theREPLACE_ME
string with a correct one.
- Create a
To run the bot, use the following command:
- Start the Bot:
- Run
npm run dev
to start the bot.
- Run
This will start the bot, and it will log in to your Discord server.
During development, you can use the following commands:
- Run with Auto-Reloading (using Nodemon):
- Run
npm run dev
to run the bot with automatic reloading.
- Run
This project uses Discord.js version 14. Make sure to refer to the Discord.js documentation for library-specific details.
This project is licensed under the MIT License. See the LICENSE file for details.