I'm a Discord Bot Developer and here is mine bot handler
a discord.js handler which support slash commands , message commands , events
3. Fill in everything in settings/config.js
4. after Fill everything in config Type in shall npm install
5. 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
- support event Handler
- slash commands support
- message commands support
- based on discord.js
- provied code snipet for commands
- support sub directory in commands folder
- support code suggestions in Handler
If you have any feedback, please reach out to us at 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,
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,
category: "",
cooldown: 5,
run: async (client, message, args, prefix) => {
// Code
},
};
If Any Bug Open Pull Request