Welcome to the Discord.js v14 TypeScript Bot Template! This template is designed to help you quickly set up a Discord bot using Discord.js version 14 and TypeScript. It includes essential features and a structured setup to streamline your development process.
- TypeScript Support: Benefit from type safety and modern JavaScript features.
- Slash Commands: Easily implement slash commands with auto-completion support.
- Message Commands: Handle traditional message-based commands.
- Cooldowns: Prevent command spam with built-in cooldown functionality.
- Detailed Permissions: Manage command permissions effectively.
- Event & Command Handlers: Organized structure for handling events and commands.
- MongoDB Support: Built-in support for MongoDB to manage persistent data.
To set up your bot using this template, follow these steps:
-
Clone the Repository:
git clone https://github.com/MrAnri29/discordjs-v14-typescript-bot-template YOUR_PROJECT_NAME
-
Configure environment:
- Rename the
.env.template
file to.env.local
and update the values accordingly.
- Rename the
-
Install Dependencies:
npm install
-
Run the Bot:
npm run start