Format numbers, style changes, fixes

This commit is contained in:
Daniel Odendahl Jr
2018-10-13 02:28:07 +00:00
parent 5c2c9d25a5
commit b0780575be
45 changed files with 146 additions and 159 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
const Command = require('../../structures/Command');
const { formatNumber } = require('../../util/Util');
module.exports = class RollCommand extends Command {
constructor(client) {
@@ -21,6 +22,6 @@ module.exports = class RollCommand extends Command {
}
run(msg, { value }) {
return msg.say(`You rolled a ${Math.floor(Math.random() * value) + 1}.`);
return msg.say(`You rolled a ${formatNumber(Math.floor(Math.random() * value) + 1)}.`);
}
};