Split random response and random image, Lando Command

This commit is contained in:
Dragon Fire
2020-03-23 11:42:43 -04:00
parent faa42bd6d8
commit 9745b15e57
57 changed files with 101 additions and 66 deletions
+27
View File
@@ -0,0 +1,27 @@
const Command = require('../../structures/Command');
const { formatNumber } = require('../../util/Util');
module.exports = class RollCommand extends Command {
constructor(client) {
super(client, {
name: 'roll',
aliases: ['dice'],
group: 'random-res',
memberName: 'roll',
description: 'Rolls a dice with a maximum value of your choice.',
args: [
{
key: 'value',
label: 'maximum number',
prompt: 'What is the maximum number you wish to appear?',
type: 'integer',
default: 6
}
]
});
}
run(msg, { value }) {
return msg.say(`You rolled a ${formatNumber(Math.floor(Math.random() * value) + 1)}.`);
}
};