mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
24 lines
457 B
JavaScript
24 lines
457 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',
|
|
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!`);
|
|
}
|
|
};
|