Most advanced handler for discord bot with shard and database support built using discord.js
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.
UPDATE 2.0.0
- New logging interface
- Added basic example commands
- Shard support with shard commands.
- Reload commands, slash commands & events without restarting the bot.
- Prefix + slash command support.
- Permission and error handlers.
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 file, fill in the required fields.
4. Run the bot
npm start
//OR
node index.js
//OR
node .
If you want to use shards, then make sharding value true in config file.
sharding: true
Note: Your bot should be in more than 2500 servers to use shards.
If you want to use database, then make database value true in config file.
database: true
You can set the permissions for the command by adding clientPermissions and userPermissions in the command file.
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`);
}
}
You can make the command developer only by adding developerOnly in the command file.
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`);
}
}
You can make the command guild only by adding guildOnly in the command file.
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`);
}
}
We added a feature that will reload commands, slash commands, and events without restarting your bot, for example:
That's all flamies, if you have any issue or problem, feel free to ask in our community.