From 3d1353a797331a339cc09d91bf7e31db72aaf2e0 Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 9 Sep 2018 16:44:07 +0200 Subject: [PATCH] back to old methode cuz it broke --- commands/fun/badmeme.js | 2 +- commands/fun/despacito.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/fun/badmeme.js b/commands/fun/badmeme.js index 6a9d6fe5..56ce342d 100644 --- a/commands/fun/badmeme.js +++ b/commands/fun/badmeme.js @@ -11,7 +11,7 @@ module.exports = class BadmemeCommand extends Command { } run(message) { - const number = object.keys(responseObject).lenght; + const number = 17; const picNumber = Math.floor (Math.random() * (number - 1 + 1)) + 1; message.channel.send(`${picNumber}: ${responseObject[picNumber]}`); } diff --git a/commands/fun/despacito.js b/commands/fun/despacito.js index 9aa035f4..f38cddf8 100644 --- a/commands/fun/despacito.js +++ b/commands/fun/despacito.js @@ -11,7 +11,7 @@ module.exports = class DespacitoCommand extends Command { } run(message) { - const number = object.keys(responseObject).lenght; + const number = 8; const vidNumber = Math.floor (Math.random() * (number - 1 + 1)) + 1; message.channel.send(`${vidNumber}: ${responseObject[vidNumber]}`); }