Files
xiao/commands/random-res/rate.js
T
2024-03-30 00:30:52 -04:00

25 lines
480 B
JavaScript

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