Typescript Discord Boilerplate
Getting Started
To start, just click the use template link (or the green button).
Create a Discord application. Guide.
Rename .env.example
to .env
and fill out the values.
Install all the dependencies with:
Package Manager | Command |
---|---|
Yarn | yarn |
npm | npm install |
pnpm | pnpm install |
Transpile the code to JavaScript with:
Package Manager | Command |
---|---|
Yarn | yarn build |
npm | npm run build |
pnpm | pnpm run build |
Start the bot with:
Package Manager | Command |
---|---|
Yarn | yarn start |
npm | npm run start |
pnpm | pnpm run start |
Available Scripts
build
: Builds the application.start
: Starts the bot.lint
: Lint source files and tests.lint:fix
: Lint source files and tests and fix them.types:check
: Checks the types of the source files.
License
This project is licensed under the GPL-3.0 license.