https://github.com/d3oxy/djs-commands
💡 Unleash the potential of your Discord.js bot with DJS-Commands, the intuitive command handling library.
https://github.com/d3oxy/djs-commands
automation command command-handler command-handler-v14 commands discord discord-js event-handler-v14 events tool utility
Last synced: about 2 months ago
JSON representation
💡 Unleash the potential of your Discord.js bot with DJS-Commands, the intuitive command handling library.
- Host: GitHub
- URL: https://github.com/d3oxy/djs-commands
- Owner: D3OXY
- License: mit
- Created: 2023-03-10T13:23:46.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-13T15:53:29.000Z (over 2 years ago)
- Last Synced: 2025-03-15T19:17:09.650Z (over 1 year ago)
- Topics: automation, command, command-handler, command-handler-v14, commands, discord, discord-js, event-handler-v14, events, tool, utility
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@d3oxy/djs-commands
- Size: 348 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# djs-commands
> Modern command handler for Discord.js — TypeScript-first, Components V2 native, with pluggable persistence.
## Coming from v1 (`@d3oxy/djs-commands`)?
The v1 package is preserved at the [`v1-final-commit` tag](https://github.com/D3OXY/djs-commands/tree/v1-final-commit) and stays on npm under `@d3oxy/djs-commands@1.4.x`. To upgrade to v2, follow the [Migration from v1](https://djscommands.deoxy.dev/migration-from-v1) guide — every v1 API has a v2 equivalent (with side-by-side examples).
## Quick start
```bash
npx create-djs-commands my-bot
cd my-bot
cp .env.example .env # add DISCORD_TOKEN
bun run dev
```
Or scaffold by hand from the [Getting Started guide](https://djscommands.deoxy.dev/getting-started).
## Packages
| Package | Description |
|---|---|
| [`@djs-commands/core`](./packages/core) | Command dispatcher, definitions, validators, plugins, fs-autoloader |
| [`@djs-commands/jsx`](./packages/jsx) | Components V2 JSX runtime (opt-in) |
| [`create-djs-commands`](./packages/create-djs-commands) | `npx create-djs-commands` scaffolding tool |
| [`@djs-commands/adapter-drizzle`](./packages/adapter-drizzle) | Drizzle/Postgres `Storage` adapter |
| [`@djs-commands/adapter-prisma`](./packages/adapter-prisma) | Prisma `Storage` adapter |
| [`@djs-commands/adapter-mongoose`](./packages/adapter-mongoose) | Mongoose `Storage` adapter (v1 continuity path) |
| [`@djs-commands/adapter-redis`](./packages/adapter-redis) | Redis `CacheAdapter` for distributed cooldowns |
## Development
```bash
bun install
bun run ci # check + typecheck + knip + test
bun run dev # watch mode across packages
bun run check # biome lint+format check
```
## License
MIT