Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A Typescript template Handler for a discord bot Customizable.

NotificationsYou must be signed in to change notification settings

CookyDevJS/discordV14-handler-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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. Offering a strongly-typed, object-oriented approach to building the bot. Whether you're new to Discord bot development or looking to switch to TypeScript, this repository is a great starting point.

You can help with join this serverClick Here

Features

  • 🔥 Slash commands (supports auto complete!)
  • ✉️ Prefix commands (Multi Server)
  • 🕛 Cooldowns
  • ❌ Enable | Disable Commands
  • 🔧 Events and Command handlers
  • 🍀 MongoDB Support

Installation

1. Clone the repository:

git clone https://github.com/CookyDevJS/discordV14-handler-ts

2. Install the necessary dependencies by running the commandnpm install.

3. Change the file named.env.example to.env

# BOT TOKENTOKEN=# WebHook For join & leave serversjoinLeaveWebhook=# GLOBAL PREFIXPREFIX=-#BOT IDCLIENT_ID=# MONGO URL (EJ: mongodb+srv://useradmin:password@cooky.9666.mongodb.net)MONGO_URI=# NAME OF YOU DATABASE (Can Create)MONGO_DATABASE_NAME=

4. Compile the TypeScript code: Runnpx 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 thenpm start command


[8]ページ先頭

©2009-2025 Movatter.jp