Coder Social home page Coder Social logo

luda1234 / discordjs-base-handler Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kabirsingh2004/discordjs-base-handler

0.0 0.0 0.0 106 KB

Best Advance Discord.js v14 Command & Event Handler With SlashCommands|| Discord.js v14

License: MIT License

JavaScript 100.00%

discordjs-base-handler's Introduction

Hi, I'm Kabir! ๐Ÿ‘‹

I'm a Discord Bot Developer and here is mine bot handler

Discord.JS V14 Handler

a discord.js handler which support slash commands , message commands , events and more...

Installation | How to use the Bot

1. Install node.js v16 or higher

2. Download this repo and unzip it | or git clone it

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

Modify - config.js

{
  token: "BOT_TOKEN"
  prefix: "BOT_PREFIX",
}

Handler Features

  • easy to use Handler
  • support event Handler
  • slash commands support
  • message commands support
  • based on discord.js v14
  • provied code snipet for commands
  • support sub directory in commands folder
  • support code suggestions in Handler

Feedback

If you have any feedback, please reach out to us at Discord Server

Usage/Examples

  • For Slash Command
const {
  Client,
  CommandInteraction,
  ApplicationCommandType,
} = require("discord.js");
const { embed: ee, emoji } = require("../../../settings/config");

module.exports = {
  name: "",
  description: ``,
  userPermissions: [],
  botPermissions: [],
  category: "",
  cooldown: 10,
  type: ApplicationCommandType.ChatInput,
  /**
   *
   * @param {Client} client
   * @param {CommandInteraction} interaction
   * @param {String[]} args
   */
  run: async (client, interaction, args) => {
    // Code
  },
};
  • for Message Command
const { Client, Message } = require("discord.js");
const { embed: ee, emoji } = require("../../../settings/config");

module.exports = {
  name: "",
  description: ``,
  userPermissions: [],
  botPermissions: [],
  category: "",
  cooldown: 10,
  /**
   *
   * @param {Client} client
   * @param {Message} message
   * @param {String[]} args
   * @param {String} prefix
   */
  run: async (client, message, args, prefix) => {
    // Code
  },
};

License

MIT

Thanks For Using Mine Handler Please Give a Star

discordjs-base-handler's People

Contributors

kabirsingh2004 avatar t6x01 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.