From 60d6c6bd2c5a66aacf8b5864509f0bdba367e3df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Bersier?= Date: Sun, 9 Sep 2018 20:07:28 +0200 Subject: [PATCH] updated fun fact description and the way it pick them --- commands/fun/funfact.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/fun/funfact.js b/commands/fun/funfact.js index 4317e9b..d89b3d2 100644 --- a/commands/fun/funfact.js +++ b/commands/fun/funfact.js @@ -6,12 +6,12 @@ module.exports = class FunFactCommand extends Command { name: 'funfact', group: 'fun', memberName: 'funfact', - description: 'Replies with a some fun fact.', + description: `Send some fun fact. If you would like to see some of yours fun fact you can send them to @Supositware | Baguette#8211. There is currently **${Object.keys(responseObject).length}** fun fact.`, }); } run(message) { - const number = 2; + const number = Object.keys(responseObject).length; const funFactNumber = Math.floor (Math.random() * (number - 1 + 1)) + 1; message.channel.send(`Fun fact: ${responseObject[funFactNumber]}`); }