updated fun fact description and the way it pick them
This commit is contained in:
parent
87f219a6ef
commit
60d6c6bd2c
1 changed files with 2 additions and 2 deletions
|
@ -6,12 +6,12 @@ module.exports = class FunFactCommand extends Command {
|
||||||
name: 'funfact',
|
name: 'funfact',
|
||||||
group: 'fun',
|
group: 'fun',
|
||||||
memberName: 'funfact',
|
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) {
|
run(message) {
|
||||||
const number = 2;
|
const number = Object.keys(responseObject).length;
|
||||||
const funFactNumber = Math.floor (Math.random() * (number - 1 + 1)) + 1;
|
const funFactNumber = Math.floor (Math.random() * (number - 1 + 1)) + 1;
|
||||||
message.channel.send(`Fun fact: ${responseObject[funFactNumber]}`);
|
message.channel.send(`Fun fact: ${responseObject[funFactNumber]}`);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue