https://github.com/kibotrel/discordbox
Framework to build Discord bot with. Handles the boring stuff so that you can focus on what makes your bot unique.
https://github.com/kibotrel/discordbox
discord discord-bot discord-js framework typescript
Last synced: 3 months ago
JSON representation
Framework to build Discord bot with. Handles the boring stuff so that you can focus on what makes your bot unique.
- Host: GitHub
- URL: https://github.com/kibotrel/discordbox
- Owner: kibotrel
- License: apache-2.0
- Created: 2023-07-17T19:16:30.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-05-23T12:59:20.000Z (about 1 year ago)
- Last Synced: 2025-08-23T19:36:00.912Z (9 months ago)
- Topics: discord, discord-bot, discord-js, framework, typescript
- Language: TypeScript
- Homepage: https://docs.discordbox.app/
- Size: 1.08 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
DiscordBox
A Discord Bot framework built on top of discord.js that allows you to focus on what makes your bot unique.
[](https://www.npmjs.com/package/discordbox)
[](https://www.codefactor.io/repository/github/kibotrel/discordbox)

## 📦 Install
```sh
npm install discordbox
```
## 🚀 Getting started
The following example shows how to create and start a bot that registers a slash command called `ping` that replies with `Pong!` when used.
```js
import { SlashCommandBuilder } from 'discord.js'
import { DiscordBot } from 'discordbox'
const bot = new DiscordBot({
token: 'xxxxxxxxxxxxxxxxxx',
guildId: 'xxxxxxxxxxxxxxxxxx',
clientId: 'xxxxxxxxxxxxxxxxxx',
supportUserId: 'xxxxxxxxxxxxxxxxxx',
})
const ping = {
action: new SlashCommandBuilder()
.setName('ping')
.setDescription('sends Pong!'),
callback: async (interaction) => {
await interaction.reply({ content: 'Pong!', ephemeral: true })
},
}
bot.addGenericInteractions([ping])
await bot.start()
```
## 📖 Documentation
You can find the full documentation on [docs.discordbox.dev](https://docs.discordbox.dev).
## ✨ Contributing
Contributions are welcome, feel free to open an issue or submit a pull request.
## 🔑 License
This project is licensed under the Apache-2.0 License - see the [LICENSE](LICENSE) file for details.