Giter VIP home page Giter VIP logo

ntmnathan / djs-command-handler Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 12 KB

A Discord.js Command Handler example using Slash Commands and Context Menus.

License: MIT License

JavaScript 100.00%
bot discord discord-api discord-bot discord-context-menus open-source slash-commands context-menus discord-app discord-interactions discord-js discord-slash-commands discord-slash discord-slash-bot discordbot

djs-command-handler's Introduction

Discord.js Command Handler

A Discord.js Command Handler example using Slash Commands and Context Menus.

Features

  • ๐Ÿ–ฑ Using ESM (ECMAScript Modules) for better performance.
  • โœ… Easy to setup
  • ๐Ÿ’ป Stable and 99.9% Bug Free

Setup

  1. Create a folder on your computer, then type the following console command to clone this repository.
git clone https://github.com/NTMNathan/djs-command-handler
  1. Create a Discord Application and name it.

bot create

  1. Rename example.env to .env and example.config to config.js and fill the required values from the Discord Bot Page. Do not show anyone these!

  2. Install Node.js v16.6 or higher by selecting the Current tab, and then "OS Name" Installer. Click here for the download page.

nodejs

  1. Install all of the required NPM modules, and Visual Studio C++ Build Tools on Windows (if you have issues).
npm install
npm i -g --add-python-to-path --vs2015 --production windows-build-tools
  1. Start the bot.
node bot

Usage

To create commands, you need to run the following command in the console:

npm run deploy

These will create a new set of commands in the server.

NOTE: You may need to wait an hour for the commands to create. 200 Command Creates per day is the limit.

Command Folder Structure:

  • context folder contains the Context Menu commands.
  • general and other folders are slash commands.

๐Ÿ“š Guides

๐Ÿ‘‹ Support

If you have found an issue with using this command handler example or have any suggestions? Feel free to join the NTM Discord Server, send an issue or pull request. We'll be happy to help and take a look!

โค๏ธ Thanks!

I am currently maintaining this repo during my spare time, so if you would like to support me. Feel free to do so by donating here on Buy me a coffee.

Also, don't forget to star the repo! ๐Ÿ˜‹

โš–๏ธ License

The MIT license applies to this repository. Please see the LICENSE file to learn more.

djs-command-handler's People

Contributors

ntmnathan avatar

Stargazers

 avatar

Watchers

 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.