Skip to content
/ discord-bot-template Public template

๐Ÿ“ A lightweight, type-safe Discord.js v14 boilerplate template built with TypeScript and Bun.

License

Notifications You must be signed in to change notification settings

aelew/discord-bot-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

18 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“ discord-bot-template

A type-safe Discord.js v14 boilerplate built with TypeScript and Bun.

Features

  • Usage of Discord interactions (application/"slash" commands)
  • Type-safe environment variable validation with t3-env
  • Example /ping and /purge commands
  • Command and event handlers
  • Biome integration

Contributions

Feel free to share your ideas, report issues, and help make discord-bot-template even better!

Setup

Clone the project

git clone https://github.com/aelew/discord-bot-template.git

Go to the project directory

cd discord-bot-template

Install dependencies

bun i

Set environment variables

To run this project, you need to set the required environment variables.
Copy `.env.example` into a new file called `.env` and fill in the values.

Deploy application commands

bun run deploy

Start the bot

bun start

Scripts

bun start # start the bot
bun lint # run biome linter
bun format # run biome formatter
bun run deploy # deploy commands (run after adding/modifying command data)

License

MIT

About

๐Ÿ“ A lightweight, type-safe Discord.js v14 boilerplate template built with TypeScript and Bun.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •