This is a Discord bot built using Discord.js v14, a powerful library for creating Discord bots using Node.js.
- Command handling: The bot handles various commands that are triggered by user input. The commands are defined in separate files in the
/commands
directory. - Event handling: The bot listens for various Discord events, such as when a user joins the server or sends a message. The event handlers are defined in separate files in the
/events
directory. - Dynamic configuration: The bot's behavior can be configured by editing the
config.json
file. This file contains various settings such as the bot token, the command prefix, and other options. - API integration: The bot integrates with various APIs to provide additional functionality. For example, it uses the OpenWeatherMap API to provide weather information.
- Clone this repository to your local machine using
- Install Node.js and npm (if not already installed).
- Run
npm install
to install the required dependencies. - Rename
config.example.json
toconfig.json
and fill in the required values. - Rename
.env.example
to.env
and fill in the required values. - Run
node deploy-commands.js
to attach commands to server. - Start the bot by running
node index.js
.
The bot's command prefix is set to /
by default. To invoke a command, type the prefix followed by the command name and any arguments. For example:
diff
/play
/play Flume
Contributions are welcome! If you'd like to contribute, please fork the repository and create a pull request.
This bot was created by Jack Sibley.