Renamed despacito to dank and despacito send despacito
This commit is contained in:
parent
a50e02b525
commit
02417eed0e
2 changed files with 23 additions and 4 deletions
18
commands/fun/dank.js
Normal file
18
commands/fun/dank.js
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
const { Command } = require('discord.js-commando');
|
||||||
|
const responseObject = require("../../randVid.json");
|
||||||
|
module.exports = class dankCommand extends Command {
|
||||||
|
constructor(client) {
|
||||||
|
super(client, {
|
||||||
|
name: 'dank',
|
||||||
|
group: 'fun',
|
||||||
|
memberName: 'dank',
|
||||||
|
description: `send some random dank vid (yea sorry for that name). There is currently **${Object.keys(responseObject).length}** vid`,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
async run(message) {
|
||||||
|
const number = Object.keys(responseObject).length;
|
||||||
|
const vidNumber = Math.floor (Math.random() * (number - 1 + 1)) + 1;
|
||||||
|
message.channel.send(`${vidNumber}: ${responseObject[vidNumber]}`);
|
||||||
|
}
|
||||||
|
};
|
|
@ -6,13 +6,14 @@ module.exports = class DespacitoCommand extends Command {
|
||||||
name: 'despacito',
|
name: 'despacito',
|
||||||
group: 'fun',
|
group: 'fun',
|
||||||
memberName: 'despacito',
|
memberName: 'despacito',
|
||||||
description: `despacito, what where you excepting? There is currently **${Object.keys(responseObject).length}** vid`,
|
description: `despacito`,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async run(message) {
|
async run(message) {
|
||||||
const number = Object.keys(responseObject).length;
|
message.say("DES\nPA\nCITO");
|
||||||
const vidNumber = Math.floor (Math.random() * (number - 1 + 1)) + 1;
|
message.say("https://images-eu.ssl-images-amazon.com/images/I/619fzjO1rmL._SS500.jpg");
|
||||||
message.channel.send(`${vidNumber}: ${responseObject[vidNumber]}`);
|
message.say("https://cdn.dopl3r.com/memes_files/despacito-eS6Lm.jpg");
|
||||||
|
message.say("https://www.youtube.com/watch?v=kJQP7kiw5Fk");
|
||||||
}
|
}
|
||||||
};
|
};
|
Loading…
Reference in a new issue