Giter Site home page Giter Site logo

tomato6966 / discord-js-handler-template Goto Github PK

View Code? Open in Web Editor NEW
102.0 3.0 81.0 294 KB

The Ultimate Discord.js Handler Template which handels fast and effectivly Commands and Events. With subfolders!

Home Page: https://milrato.eu

License: GNU General Public License v2.0

JavaScript 100.00%
discordjs discord-js discord handler commandhandler command-handler discord-handler discordjs-bot bot discordbot

discord-js-handler-template's Introduction

Discord-Js-Handler-Template



Installation Guide


- have **node.js v16.6 or higher**
  • in ./botconfig/config.json Adjust the BOT TOKEN and PREFIX

  • in ./botconfig/settings.json Adjust the DEFAULT MESSAGES AND OTHER SETTINGS

  • in ./botconfig/embed.json Adjust the EMBED SETTINGS

  • npm install to Install the depedences

  • node . to start the Bot





Slash Commands Information

To add a Subcommand create a Folder in ./slashCommands

Make sure to add it's Settings in ./botconfig/config.json

You can't have more folder then 1 Layer

If u want to create "normal" Slash commands create the files just in ./slashCommands




SUPPORT ME AND MILRATO DEVELOPMENT

You can always Support me by inviting one of my own Discord Bots

2021's best Music Bot | Lava Music Musicium Music Bot Milrato Multi Bot

Credits

If consider using this Bot, make sure to credit me!

discord-js-handler-template's People

Contributors

tomato6966 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

discord-js-handler-template's Issues

Plz update to V14

I absolutely love this template! only issue is im not talented enough to update it to V14 :(

Enhancement Request

I was wondering if this command handler could also have some form of permission handler for the client and the user? I think this would be a really great enhancement for what already is a great command handler. ๐Ÿ˜€
Because ultimately, permission, event, command and functions being handled is all you would ever need for a command handler

Auto delete commad usagw

Everytime I do a command the bot deletes the command I typed , so it makes it hard for me to show ppl commands how do I fix that so it doesn't auto delete commands

Issue with "IntChoices" + fix

While trying to set up a simple int choice I've noticed that IntChoices wasn't working as intended and continued to return an error, I went to where the error was and noticed the type that was being returned was "3" String instead of "4" Integer. So I looked in the SlashCommand handler and noticed that for both StringChoices and IntChoices you're adding a string option instead of an intoption

to fix simply change

} else if(option.IntChoices && option.IntChoices.name && option.IntChoices.description && option.IntChoices.choices && option.IntChoices.choices.length > 0){
subcommand.addStringOption((op) =>

to

} else if(option.IntChoices && option.IntChoices.name && option.IntChoices.description && option.IntChoices.choices && option.IntChoices.choices.length > 0){
subcommand.addIntegerOption((op) =>

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.