Bare-bones structure of a TypeScript discord.js bot project.
- Clone this repository:
git clone https://github.com/m1-dev/discord.js-typescript-template.git my-app
cd my-app
- Install dependencies:
pnpm install # or your preferred package manager (npm, yarn, ...)
- Edit
.env.example
into.env
and input correct values.
Name | Description |
---|---|
dev | Runs your bot in development mode using tsx |
build | Creates an optimised build for production using tsup |
start | Starts the bot in production mode, from the dist folder |