/djs-v14-typescript-template

Primary LanguageTypeScriptGNU General Public License v3.0GPL-3.0

Discord.js V14 Template (Lightweight)

This is a lightweight boilerplate for Discord.js v14 (dev) in Typescript.

Features

  • Type definitions for SlashCommands and EventHandlers
  • 2 basic events ('ready', 'interactionCreate')
  • 3 basic commands (/ping, /info, /help)
  • Pretty-formatted logging with levels via pino

Prerequisites

Usage

  1. Install the prerequisites, including a package manager of your choice (this guide uses npm)
  2. Edit .env file and change any intents in config/GatewayIntents.json
  3. Run the bot with npm run bot

To run the bot in development watch mode (restart on every change), use npm run watch