Say the pic/vid number

This commit is contained in:
unknown 2018-09-09 16:02:35 +02:00
parent 49224db7a7
commit b386608936
2 changed files with 2 additions and 2 deletions

View file

@ -13,6 +13,6 @@ module.exports = class BadmemeCommand extends Command {
run(message) { run(message) {
const number = 12; const number = 12;
const picNumber = Math.floor (Math.random() * (number - 1 + 1)) + 1; const picNumber = Math.floor (Math.random() * (number - 1 + 1)) + 1;
message.channel.send(responseObject[picNumber]); message.channel.send(`${picNumber}: ${responseObject[picNumber]}`);
} }
}; };

View file

@ -13,6 +13,6 @@ module.exports = class DespacitoCommand extends Command {
run(message) { run(message) {
const number = 5; const number = 5;
const vidNumber = Math.floor (Math.random() * (number - 1 + 1)) + 1; const vidNumber = Math.floor (Math.random() * (number - 1 + 1)) + 1;
message.channel.send(responseObject[vidNumber]); message.channel.send(`${vidNumber}: ${responseObject[vidNumber]}`);
} }
}; };