Giter VIP home page Giter VIP logo

saiteja-madha / djs-slash-handler Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 40 KB

๐Ÿ“ฆ Command handler for discord.js v14 subcommands and subcommand groups

Home Page: https://www.npmjs.com/package/djs-slash-handler

License: MIT License

JavaScript 19.58% TypeScript 80.42%
command-handler-v14 discord-js-v14 discord-subcommands discord discord-js-handler-v14 discord-js-template subcommands

djs-slash-handler's Introduction

About

Command handler for discord.js v14 subcommands and subcommand groups. It will use the file structure to create the corresponding subcommands and subcommand groups.

Installation

npm install djs-slash-handler

Working

Below is an example of how command handler interprets the file structure. The folder/file names are the names of the subcommands/subcommand groups.

commands
    |
    |__ category1
        |
        |__ command1.js
        |
        |__ command2.js
    |
    |__ category2
        |
        |__ command3
            |__ subcommand1.js
            |__ subcommand2.js
        |
        |__ command4
            |__ subcommandgroup
                |__ subcommand1.js
                |__ subcommand2.js
            |__ subcommand1.js
            |__ subcommand2.js

Refer to the discord developer documentation for more information on valid/invalid structure

Additional Info

  • This is a quick & dirty implementation of the command handler
  • Additional features/documentation will be added in the future
  • Feel free to contribute to this project and open an issue if you find any bugs
  • For more information on how to use the command handler, join us on discord here

djs-slash-handler's People

Contributors

saiteja-madha avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

djs-slash-handler's Issues

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.