Files
xiao/commands/random/rate.js
T
Daniel Odendahl Jr 445b5b0e65 Fix
2018-05-19 11:53:28 +00:00

26 lines
518 B
JavaScript

const { Command } = require('discord.js-commando');
module.exports = class RateCommand extends Command {
constructor(client) {
super(client, {
name: 'rate',
aliases: ['rate-waifu'],
group: 'random',
memberName: 'rate',
description: 'Rates something.',
args: [
{
key: 'thing',
prompt: 'What do you want to rate?',
type: 'string',
max: 1950
}
]
});
}
run(msg, { thing }) {
return msg.say(`I'd give ${thing} a ${Math.floor(Math.random() * 10) + 1}/10!`);
}
};