DKRCommands is a Discord.js command handler.

Overview
Logo

Lint check Build check
Npm version Code size Downloads
Github issues Github stars License

DKRCommands is a Discord.js command handler for Discord.js v14 built as a rework of WOKCommands by Worn Off Keys. The goal of this package is to make it simple and easy to get your bot off the ground without worrying about your own command handler.

📗 Documentation

The official documentation can be found here.

🔧 Installation

NPM
npm install dkrcommands
Development Build
npm install github:karelkryda/DKRCommands#development

🧭 Credits

👤 Alexzander Flores

You might also like...

💣 Error handler for CLI applications 💥

Error handler for CLI applications. Features 💣 Error type-specific handling 🚒 Graceful exit ⛑️ Normalize invalid errors 📕 Log verbosity: full, shor

Dec 20, 2022

Notification handler. KISS, light and library free.

Notification.js Notification.js is a standalone ES6 module that allows you to easily handle several notifications from different types at the same tim

Nov 25, 2020

Keyboard shortcut handler. KISS, light and library free.

Shortcut.js Shortcut.js is a JavaScript ES6 component that offers a global keyboard event handler. This way one can declare and react to any combinati

Sep 28, 2022

A handler to create embedded pages with buttons for pagination.

➝ Whats that • A handler to create embedded pages with buttons for pagination. ➝ Requirements • ["Handler"] pages.js • [Example command] embed.js ➝ Us

Oct 30, 2022

https://www.captchaai.io/ - simple captchaai API (next 2captcha) tasks handler for node

captchaai.io api 🧠 task handler Want you to get captcha verified tokens with a simple function call in you node application? Just install axios and r

Dec 9, 2022

A good looking help command made with discord.js with select menus. Works with prefix and slash commands too!

A good looking help command made with discord.js with select menus. Works with prefix and slash commands too!

fancy-help-command A good looking help command made with discord.js with select menus. Works with prefix and slash commands too! Dependencies: Select

Dec 12, 2022

DJS Purge Command (Discord.js V14)

DJS Purge Command (Discord.js V14)

Purge Cmd DJS Purge Command (Discord.js V14) Shields.io MidNight Bot Click Me to Invite The Bot Click Me To reach my support Server Dependencies disco

Dec 13, 2022

Cypress commands are asynchronous. It's a common pattern to use a then callback to get the value of a cypress command

cypress-thenify Rationale Cypress commands are asynchronous. It's a common pattern to use a then callback to get the value of a cypress command. Howev

Oct 2, 2022

🎨ansi escape code generator to help make colorful command line tools

ansicodes 🎨 ansi escape code generator to help make colorful command line tools i got tired of looking up ansi code tables when writing command line

Dec 17, 2022
Comments
  • [Bug]:

    [Bug]:

    ⚠️ Please verify that this bug has NOT been raised before.

    • [X] I checked and didn't find similar issue

    ✏ Description

    I have been trying to update an existing bot to Discord.js v14 for a while now. But I keep running into the same issue across 4 different bots that use DKRCommands; the event handling just does not work at all. I have the correct folder structure and naming scheme. I have an discord interactionCreate event listener for handling button presses and they never work. My code works perfectly fine if I put that listener in the index.js though. I would very much like to keep it out of the index.js to keep my work space clean and organized.

    👟 Reproduction steps

    I'm not so sure there are any steps to take. I can instead paste my code in a srcshare here and see what you think. srcshare link.

    🔢 DKRCommands version

    1.0.0-beta.4

    💻 Operating system

    Microsoft Windows

    🔢 Node.js version

    16.15.0

    👀 Expected behavior

    The client.on(interactionCreate) event listener should work in its own file without needing to be in the index.js.

    😥 Actual behavior

    Bot comes online, console shows commands load, and the event "loads". But When I interact with the button the listener handles, it fails. No errors or anything. Bot doesn't crash. Just nothing from the event listener.

    Everything above and outside of the module.exports runs. But anything inside the module.exports does not run at all.

    📝 Relevant log output

    No relevant log info to provide.
    
    bug 
    opened by DJ45X 11
  • Event Handling

    Event Handling

    In regards to this,

    I'd rather not have my events in the index.js. Is there a way, through DKRCommands, to move my event code into a separate file/ folder? I liked how WOKCommands used to have a Features directory where I could store my event listeners. Helped a lot with file/ folder organization and keeping the index.js lean.

    Else, I'm open to any ideas you may have :)

    opened by DJ45X 3
  • [Bug]: no constuctor?

    [Bug]: no constuctor?

    ⚠️ Please verify that this bug has NOT been raised before.

    • [x] I checked and didn't find similar issue

    ✏ Description

    basically can't initialize DKRCommands, it says

    This expression is not constructable.
      Type 'typeof import(".../node_modules/dkrcommands/dist/index")' has no construct signatures.
    

    my import is as follows:

    import DKRCommands from "dkrcommands"
    

    👟 Reproduction steps

    just npm install dkrcommands and paste basic example from documentation

    🔢 DKRCommands version

    1.0.0-beta.1

    💻 Operating system

    Linux

    🔢 Node.js version

    18.9.0

    👀 Expected behavior

    works

    😥 Actual behavior

    doesn't work

    📝 Relevant log output

    No response

    bug documentation 
    opened by dgudim 2
Owner
Karel Krýda
Homelaber and developer
Karel Krýda
🤖 Makes it easy to create bots on discord through a simple command handler

MyBotHelper.JS ?? About facilitates the creation of bots via discord.js, the repository already has a main script that automatically synchronizes and

Marcus Rodrigues 4 Dec 31, 2022
A Discord.JS Command Handler to handle commands eaiser

TABLE OF CONTENTS Installation Setup Changing Default Prefix Creating a Command Usage of minArgs and maxArgs Syntax Errors Global Syntax Errors Per Co

AaTherf 3 Jun 8, 2022
V14 Slash Command Handler! (ES6 Module Destekli)

V14 Slash Command Handler Proje discord.js v14 üzerine yazılmıştır. Gerekli olan minimum nodejs versiyonu v16.9 Örnek kullanım src/commands/ping.js do

Mehmet 137 Dec 31, 2022
A Discord bot Template made with Discord.JS version 14 includes Prefix, Slash commands and MongoDB handler.

Project Language: Fork/Download for: Project Requirements: Database Available: DiscordJS V14 Bot Template - Introduction: A Discord bot project made w

T.F.A 105 Jan 3, 2023
An Amazing SlashCommands Handler (With Sharding & Mongo) Made by discord.gg/azury

SlashCommands Handler by The Azury Team If this Git-Repo gets "40" Stars ⭐ i'll add some more Commands! ??️ FEATURES: 1. SlashCommands Support 2. Cont

Masterious 24 Dec 2, 2022
New Discord.JS v14 Slash and Prefix Commands handler with Events. Check it out now!

Discord.js v14 Command-Handler Commands, Events, Permissions and Cooldown Handlers for Discord.js v14 bot ~ Made by Lynx Discord.js v14 (dev version)

Comet Development 20 Dec 19, 2022
Run a command, watch the filesystem, stop the process on file change and then run the command again...

hubmon Run a command, watch the filesystem, stop the process on file change and then run the command again... Install You can install this command lin

Hubert SABLONNIÈRE 7 Jul 30, 2022
An Advanced Activity Command Using Discord-Together Package For Discord.jsv13 with buttons

Active An Advanced Activity Bot Using Discord-Together Package For Discord.jsv13 with buttons. Report Bug · Request Feature Usage. How to run the bot?

Hypwreck 11 Feb 15, 2022
Error and Success Handler for Passport.js

passport-handler Developed with ❤️ by Swôth ?? Installation npm i passport-handler --save yarn add passport-handler ?? Importing import Handler from '

Swôth 2 Oct 29, 2022
Provides a KafkaJS-compatible handler for processing messages that facilitates publishing to delayed-retry or dead-letter topics

kafkajs-async-retry This module handles retries and dead-lettering for messages from a Kafka topic without blocking the processing of subsequent messa

Shutterstock 5 Dec 5, 2022