@sush1sui/dc-boilerplate
v0.1.2
Published
A tiny, fast Discord bot boilerplate built for Bun.js — minimal, modern, and ready to publish.
Readme
discord-bun-boilerplate
A tiny, fast Discord bot boilerplate built for Bun.js — minimal, modern, and ready to publish.
Features
- Bun-first: works with
bun runandbunx. - Command and event loaders (drop-in files).
- Simple CLI shim for running the bot after publishing.
Clone command
bunx @sush1sui/dc-boilerplate my-botQuickstart (local)
- Install dependencies:
bun install- Start server:
# Development (with hot reload)
bun run dev
# Production
bun run startConfiguration & Where to edit
Commands: add files under
src/bot/commands/utility.- Example:
src/bot/commands/utility/ping.ts - Each command should export
data(aSlashCommandBuilder) andexecute(interaction).
- Example:
Events: add files under
src/bot/events/.- Example:
src/bot/events/ping.ts. - Each event file should export
name, optionalonce, andexecute(...args).
- Example:
Bot config and startup:
src/bot/bot.ts— adjust intents and client options there.CLI entry:
bin/cli.ts— setsBOT_TOKENand importssrc/index.ts.
Publishing notes
- Ensure
package.jsonbinfield is correct and thebin/files are included in the package. - Consider adding a
.npmignoreor updatingfilesinpackage.jsonto control published files.
License
- MIT
