Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 5 days 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 (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-09T17:10:12.000Z (8 months ago)
- Last Synced: 2024-05-02T05:11:07.683Z (7 months 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: 17
- Watchers: 1
- Forks: 2
- 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
![NPM Version](https://img.shields.io/npm/v/discord.js?label=discord.js&style=flat-square&color=%23FEB700)
![GitHub Repo stars](https://img.shields.io/github/stars/flameface/discord-pro-handler?style=flat-square&color=%23FEB700)
![GitHub forks](https://img.shields.io/github/forks/flameface/discord-pro-handler?style=flat-square&color=%23FEB700)
![GitHub Issues or Pull Requests](https://img.shields.io/github/issues/flameface/discord-pro-handler?style=flat-square&color=%23FEB700)# 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:![alt text](./assets/example1.png)
## Support
That's all flamies, if you have any issue or problem, feel free to ask in our [community](https://discord.gg/bk6mz3hwXg).