Skip to content

Type-safe Discord.js v14 bot base with all interactions & event handler

License

Notifications You must be signed in to change notification settings

mallusrgreatv2/ts-bot-handler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typescript Bot Handler

Features

  • All types of interactions supported
  • Proper logging system with debug logs in development environment
  • Fully typed
  • Optional MongoDB support

You'll never have to touch the interactionCreate event, ever again. Supported interactions:

  • Slash commands
  • All types of select menus
  • Modals
  • Context menus
  • Buttons

Setup

  1. git clone https://github.com/mallusrgreatv2/ts-bot-handler.git
  2. npm install or yarn install
  3. Copy content of .env.example to a new file called .env
  4. Change the values in .env
  5. Run the dev script for development purposes (enables debug logs), or the start script in production.

Rules

  • For disabled commands, events, selects, buttons, context menus, or modals, name them (name).disabled.ts