Skip to content

iniad-ts/bun-iniadtsbot

Repository files navigation

📝 discord-bot-template

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

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
  • Prettier 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 install

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 run start

Scripts

bun run start # start the bot
bun run prettier # format code
bun run deploy # deploy commands(run after adding/modifying command data)

docker 起動

docker compose up -d

Prismaのセットアップ

npx prisma migrate dev
npx prisma generate

Prismaのスキーマを変更する場合

npx prisma db push
npx prisma generate

prisma studio 起動

npx prisma studio

テスト実行

npx vitest src/...

License

MIT

About

サークルで運用している入退室管理DiscordBot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •