Skip to content

a TypeScript template for a Discord bot v14 handler, with support for custom prefixes and slash commands

Notifications You must be signed in to change notification settings

NoBody-UU/discord-js-v14-handler-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord.js v14 Bot Handler

Discord](https://discord.gg/MqNKpdrGjw)

This is a template for a Discord bot v14 handler using TypeScript. It is a starting point for building a bot that supports prefix commands and slash commands. The codebase is written in TypeScript, offering a strongly-typed, object-oriented approach to building the bot. This repository is designed to help you quickly get up and running with your bot development, and serves as a foundation for more complex features and integrations. Whether you're new to Discord bot development or looking to switch to TypeScript, this repository is a great starting point.

YOU CAN HELP ME BY INVITING MY BOT :D Clic Here

Features

  • 🟦 Typescript
  • 🔥 Slash commands (supports auto complete!)
  • ✉️ Prefix commands (Multi Server)
  • 🕛 Cooldowns
  • ❌ Enable|Disable Commands
  • 🏴 Detailed Permissions
  • 🔧 Event & Command handlers
  • 🍀 MongoDB Support
  • ⚙ Join & Leave Webhook

Installation

1. Clone the repository:

git clone https://github.com/NoBody-UU/discord-js-v14-handler-ts

2. Install the necessary dependencies by running the command npm install.

3. then change file named .env.example to .env and fill.

# BOT TOKEN
TOKEN=

# WebHook For join & leave servers
joinLeaveWebhook=

# GLOBAL PREFIX
PREFIX=-

#BOT ID
CLIENT_ID=

# MONGO URL (EX: mongodb+srv://useradmin:password@nobody.9666.mongodb.net)
MONGO_URI=
# NAME OF YOU DATABASE (Can Create)
MONGO_DATABASE_NAME=

4. Compile the TypeScript code: Run npx tsc (or what you use for Build the project using the typescript module) to compile the TypeScript code into JavaScript.

5. start the bot using the npm start command ()

Contribution

We welcome any contributions to Cuchus Music Discord Bot, whether it be reporting bugs, proposing new features, or fixing issues. To contribute, please follow these steps:

  1. Fork the repository and create a new branch for your changes.
  2. Make your changes and commit them to your branch.
  3. Open a pull request and describe the changes you have made.
  4. If your changes are in line with the project goals and meet our quality standards, they will be merged into the main branch.

Please note that all contributors are expected to follow our code of conduct. By contributing to this project, you agree to abide by its terms.


¡Please leave a ⭐ to help the project

About

a TypeScript template for a Discord bot v14 handler, with support for custom prefixes and slash commands

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published