discord.js-commandis
v10.0.0
Published
Best command handler out there 👌
Downloads
1
Readme
discord.js-commandis
THE CORRECT WAY TO HANDLE COMMANDS
If you appreciate my hard work, feel free to donate on PayPal!
Installation
npm install --save discord.js-commandis
Example Usage
const { Client } = require('discord.js');
const commandIs = require('discord.js-commandis');
const client = new Client();
client.on('message', msg => {
if (commandIs(['p', 'ping'], '!', msg)) {
msg.reply('Pong!');
}
});
client.login('MzkyMDg2ODU2ODIyNTU0NjI1.DRoVNw.ItZlel3rfBmqMklt4OW0c8FMK3A');