1.0.3 • Published 4 years ago

discord-response v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

Discord-Response

Discord-Response is made to make random responses on discord easier. This package makes it much easier for you to be able to get random responses in your discord.js bot!

Installing

Run npm i discord-response in a terminal! Even a baby could do it!

Usage

Setup:

const random = require('discord-response');
 
module.exports = {
    name: "random",
    description: "Randomly pickes an option",
    run: async (client, message, args) => {
        try {
            const options = args.join(" ").split(", ")
            if (!args) return message.channel.send('Please provide some options!');
            if (args.length === 1) return message.channel.send('Please provide more than 1 option!');
            message.channel.send(random.response(...options));
        } catch (e) {
            console.log(e);
        }
    }
}