Dynamic Command Handling
Get started with our easy-to-use command handler
Starting Up
module.exports = {
key: "misc", // Module Key (LOWERCASE!)
name: "Miscelaneous", // Module Name
desc: "Misc commands" // Module Description
}module.exports = {
name: "ping", // Command Name
module: "misc", // Must be a valid key to a module.
execute: (client, message, args) => {
// Your code here
message.channel.send(`Pong! ${client.ws.ping}ms`)
}
}Incorporating it to our code
Last updated