Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mallusrgreatv2/ts-bot-handler

Type-safe Discord.js v14 bot base with all interactions & event handler
https://github.com/mallusrgreatv2/ts-bot-handler

base discord discord-bot discordjs djs djs-starter djs-v14 javascript js starter ts typescript v14-discord-bot-template v14-js

Last synced: about 7 hours ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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`](https://github.com/mallusrgreatv2/ts-bot-handler/blob/master/.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`