2018-09-08 01:50:13 +02:00
|
|
|
const { Command } = require('discord.js-commando');
|
2018-09-08 20:34:03 +02:00
|
|
|
const responseObject = require("../../randVid.json");
|
2018-09-08 01:50:13 +02:00
|
|
|
module.exports = class DespacitoCommand extends Command {
|
|
|
|
constructor(client) {
|
|
|
|
super(client, {
|
|
|
|
name: 'despacito',
|
|
|
|
group: 'fun',
|
|
|
|
memberName: 'despacito',
|
|
|
|
description: 'despacito, what where you excepting?',
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
run(message) {
|
2018-09-08 20:42:58 +02:00
|
|
|
const number = 5;
|
2018-09-08 20:34:03 +02:00
|
|
|
const vidNumber = Math.floor (Math.random() * (number - 1 + 1)) + 1;
|
|
|
|
message.channel.send(responseObject[vidNumber]);
|
|
|
|
}
|
2018-09-08 01:50:13 +02:00
|
|
|
};
|