https://github.com/flameface/discord-pro-handler
Most advanced handler for discord bot with shard and database support built using discord.js
https://github.com/flameface/discord-pro-handler
discord discord-bot discord-bot-template discord-handler discord-js discord-js-handler discord-pro-handler mongodb nodejs
Last synced: about 1 year ago
JSON representation
Most advanced handler for discord bot with shard and database support built using discord.js
- Host: GitHub
- URL: https://github.com/flameface/discord-pro-handler
- Owner: flameface
- License: mit
- Created: 2023-08-27T08:31:26.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-09T17:10:12.000Z (about 2 years ago)
- Last Synced: 2025-04-02T19:46:58.886Z (about 1 year ago)
- Topics: discord, discord-bot, discord-bot-template, discord-handler, discord-js, discord-js-handler, discord-pro-handler, mongodb, nodejs
- Language: JavaScript
- Homepage:
- Size: 38.1 KB
- Stars: 18
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

Most advanced handler for discord bot with shard and database support built using discord.js




# Discord Pro Handler
Experience the ultimate handler, equipped with basic to advanced features, stunning logging capabilities, a simple yet robust structure, shard support, and much more. Save valuable time by utilizing this comprehensive solution, designed to streamline the process of building bots effortlessly.
## Changelog
**UPDATE 2.0.0**
- New logging interface
- Added basic example commands
## Features
- Shard support with shard commands.
- Reload commands, slash commands & events without restarting the bot.
- Prefix + slash command support.
- Permission and error handlers.
## Installation
**1. Clone the repository**
```
git clone https://github.com/flameface/discord-pro-handler.git
```
**2. Install the required dependencies**
```
npm install
```
**3. Config the bot**
In [config](./structures/configuration/index.js) file, fill in the required fields.
**4. Run the bot**
```js
npm start
//OR
node index.js
//OR
node .
```
## Configs
#### Shard
If you want to use shards, then make sharding value true in [config](./structures/configuration/index.js) file.
```js
sharding: true
```
**Note**: Your bot should be in more than 2500 servers to use shards.
#### Database
If you want to use database, then make database value true in [config](./structures/configuration/index.js) file.
```js
database: true
```
## Command Config
#### Permissions
You can set the permissions for the command by adding **clientPermissions** and **userPermissions** in the command file.
```js
module.exports = {
name: "ping",
description: "Get the bot's ping",
clientPermissions: ["SendMessages"],
userPermissions: ["SendMessages"],
run: async (client, message, args) => {
message.channel.send(`${client.ws.ping}ms`);
}
}
```
#### Developer Only
You can make the command developer only by adding **developerOnly** in the command file.
```js
module.exports = {
name: "ping",
description: "Get the bot's ping",
developerOnly: true,
run: async (client, message, args) => {
message.channel.send(`Pong! ${client.ws.ping}ms`);
}
}
```
#### Guild Only
You can make the command guild only by adding **guildOnly** in the command file.
```js
module.exports = {
name: "ping",
description: "Get the bot's ping",
guildOnly: true,
run: async (client, message, args) => {
message.channel.send(`Pong! ${client.ws.ping}ms`);
}
}
```
## Additional
We added a feature that will reload commands, slash commands, and events without restarting your bot, for example:

## Support
That's all flamies, if you have any issue or problem, feel free to ask in our [community](https://discord.gg/bk6mz3hwXg).