forked from Supositware/Haha-Yes
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
641 B
JavaScript
18 lines
641 B
JavaScript
const { Command } = require('discord.js-commando');
|
|
const responseObject = require("../../randVid.json");
|
|
module.exports = class DespacitoCommand extends Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: 'despacito',
|
|
group: 'fun',
|
|
memberName: 'despacito',
|
|
description: 'despacito, what where you excepting?',
|
|
});
|
|
}
|
|
|
|
run(message) {
|
|
const number = object.keys(responseObject).lenght;
|
|
const vidNumber = Math.floor (Math.random() * (number - 1 + 1)) + 1;
|
|
message.channel.send(`${vidNumber}: ${responseObject[vidNumber]}`);
|
|
}
|
|
}; |