I'm a Discord Bot Developer and here is mine bot handler
- Clone this repository.
- Fill in the required details in
settings/config.js
. - Run
npm install
to install dependencies. - Start the bot with
node index.js
.
import { Colors } from "discord.js";
const settings = {
TOKEN: process.env.TOKEN || "BOT_TOKEN",
PREFIX: process.env.PREFIX || "BOT_PREFIX",
Owners: ["OwnersId", "OwnersId"],
Slash: {
Global: false,
GuildID: process.env.GuildID || "GUILD_ID",
},
};
export default settings;
- Easy-to-use Handler
- Event handling support
- Slash commands
- Message commands
- Built on discord.js
- Code snippets for commands
- Subdirectory support in the commands folder
- Code suggestions in Handler
If you have any feedback or need assistance, please join out Discord Server
- Commands Example
import { ApplicationCommandType, PermissionFlagsBits } from "discord.js";
/**
* @type {import("../../../index.js").Scommand}
*/
export default {
name: "",
description: "",
userPermissions: [PermissionFlagsBits.SendMessages],
botPermissions: [
PermissionFlagsBits.SendMessages,
PermissionFlagsBits.EmbedLinks,
],
category: "",
type: ApplicationCommandType.ChatInput,
run: async ({ client, interaction }) => {
// Code
},
};
import { ApplicationCommandType } from "discord.js";
/**
* @type {import("../../..").CMcommand}
*/
export default {
name: "",
category: "",
type: ApplicationCommandType.Message,
run: async ({ client, interaction }) => {
// Code
},
};
const { ApplicationCommandType } = require("discord.js");
/**
* @type {import("../../..").CUcommand}
*/
export default {
name: "",
category: "",
type: ApplicationCommandType.User,
run: async ({ client, interaction }) => {
// Code
},
};
import { PermissionFlagsBits } from "discord.js";
/**
* @type {import("../../../index.js").Mcommand}
*/
export default {
name: "",
description: "",
userPermissions: [PermissionFlagsBits.SendMessages],
botPermissions: [
PermissionFlagsBits.SendMessages,
PermissionFlagsBits.EmbedLinks,
],
category: "",
cooldown: 5,
run: async ({ client, message, args, prefix }) => {
// Code
},
};
This project is licensed under the MIT License. See the LICENSE file for details.
Thank you for considering the use of Kabir's Discord Bot Handler! If you find it helpful, we encourage you to give it a ⭐️.
If you encounter any bugs or have suggestions for improvement, please open a pull request. Your contributions are highly appreciated!
For any inquiries or assistance, feel free to reach out to us on our Discord Server.
Happy coding! 🚀