An easy-to-use Discord bot using DISCORD.JS v14.
This repository is a modern and scalable discord bot built using discord.js v14. It's made to help you get started quickly with features like slash commands, context commands and MongoDB integration. Multi-language support is built-in, supporting both French and English out-of-the-box.
For more details, check out our Wiki
- Slash Commands: Easily create and manage slash commands.
- Context Commands: Support for user and message context menus.
- Database Integration: MongoDB support for persistent data.
- Multi-Language Support: Switch between French and English.
- Modular Structure: Clean and scalable codebase.
- Open Source: Contributions are welcome!
- Node.js: Version 22.13 or higher.
- MongoDB: A MongoDB cluster (Free clusters are supported).
- Discord OAuth Scopes: Make sure to include the
application.commands
scope when adding the bot.
- Clone the repository
- Use:
git clone https://github.com/gonzyui/Discord-Template-V14.git
or download the .zip
file.
- Install dependencies
- Navigate into the projet folder and run:
npm install
## or
yarn add
- Configure Environment Variables
- Copy
.env.example
to.env
- Edit the
.env
file to include your discord token, MongoDB connection string.
- Run the Bot
- Start the bot with:
npm start
The bot includes pre-built slash and context commands.
/ping
/help
/language
Avatar
The bot supports both French and English. You can switch the language using the `/language command. All responses (including error messages) are automatically translated based on your server settings.
The bot uses MongoDB for storing guild settings and other persistent data.
Make sure your MongoDB instance is running and your credentials are correctly configured in the .env
file.
If you encounter any issues, please open an Issue. Want to contribute? Open a Pull Request and join the community !
- Currently, there are no known issues.
Want to contribute and see your name here ? Open a PR and join us!
gonzyui 👑 Project Lead |
This project is licensed under the MIT License. See the License file for details.