Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

An extensive template for a Discord.js v14 bot written in Typescript. Completely typesafed handlers for your productivity.

Notifications You must be signed in to change notification settings

mallusrgreatv2/TypescriptBotTemplate

Repository files navigation

Typescript Bot Template by mallusrgreat

Features

  • All types of interactions supported
  • Proper logging system and save logs into file (logs.log)
  • Fully typed
  • Optional MongoDB support

You'll never have to touch the interactionCreate event, ever again. Interactions supported:

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

Setup

  • git clone https://github.com/mallusrgreatv2/TypescriptBotTemplate.git
  • npm install or yarn install
  • (Delete yarn.lock if using npm, and delete package-lock.json if using yarn.)
  • Copy the content of .env.example over to a new file called .env
  • Change the values in .env
  • npm start if using npm and yarn Ystart if using yarn.

Rules

  • For any interaction or event, name them (name).(command|event|modal|menu|select|button).ts
  • For disabled commands, name them (name).disabled.ts
  • After using tabcomplete to import Command class, add a .js suffix to the path. The path should look something like this: @/Structures/Command.js

About

An extensive template for a Discord.js v14 bot written in Typescript. Completely typesafed handlers for your productivity.

Topics

Resources

Stars

Watchers

Forks