This is a Discord bot built using Node.js, Discord.js, MongoDB, and Mongoose.
The bot provides various functionalities for managing server members, tracking their activity, and executing fun and interactive commands.
- getAvatar: Retrieve a user's avatar.
- youtube: Get video's link from Youtube.
- balance: Check your balance.
- pay: Transfer balance to another user.
- ban: Ban a user from the server.
- kick: Kick a user from the server.
- timeout: Temporarily timeout a user.
- random-joke: Get a random joke.
- reactor: Make a message that will count the reactions on it.
- embed: Send an embed message contains all the information about a user.
- dnd: Set Do Not Disturb status to the bot.
- listening: Set the bot's listening status.
- online: Set the bot's status to online.
- idle: Set the bot's status to idle.
- ping: Check the bot's ping.
- register: Register a user.
Before running the bot, ensure you have the following installed on your system:
- Node.js
- npm
- A valid Discord bot token (you need to handle this yourself)
- MongoDB instance for database operations
-
Clone the repository to your local machine.
-
Navigate to the bot's directory.
cd src
-
Install the required dependencies:
npm install
To run the bot, use the following command inside the src
directory:
node .
Note: The bot will not run without a valid Discord bot token. Please make sure to add your bot token to the appropriate configuration file or environment variable.
Thank FusionTerror
for his tutorials on Discord bots.