mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-18 13:56:25 +02:00
Format numbers, style changes, fixes
This commit is contained in:
@@ -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)}.`);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user