back to old methode cuz it broke

This commit is contained in:
unknown 2018-09-09 16:44:07 +02:00
parent 77260bd2d1
commit 3d1353a797
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,7 @@ module.exports = class BadmemeCommand extends Command {
} }
run(message) { run(message) {
const number = object.keys(responseObject).lenght; const number = 17;
const picNumber = Math.floor (Math.random() * (number - 1 + 1)) + 1; const picNumber = Math.floor (Math.random() * (number - 1 + 1)) + 1;
message.channel.send(`${picNumber}: ${responseObject[picNumber]}`); message.channel.send(`${picNumber}: ${responseObject[picNumber]}`);
} }

View file

@ -11,7 +11,7 @@ module.exports = class DespacitoCommand extends Command {
} }
run(message) { run(message) {
const number = object.keys(responseObject).lenght; const number = 8;
const vidNumber = Math.floor (Math.random() * (number - 1 + 1)) + 1; const vidNumber = Math.floor (Math.random() * (number - 1 + 1)) + 1;
message.channel.send(`${vidNumber}: ${responseObject[vidNumber]}`); message.channel.send(`${vidNumber}: ${responseObject[vidNumber]}`);
} }