const { Command } = require('discord.js-commando');

module.exports = class RateWaifuCommand extends Command {
	constructor(client) {
		super(client, {
			name: 'rate-waifu',
			aliases: ['waifu', 'rate'],
			group: 'random',
			memberName: 'rate-waifu',
			description: 'Rates a waifu.',
			args: [
				{
					key: 'waifu',
					prompt: 'Who do you want to rate?',
					type: 'string',
					max: 1950
				}
			]
		});
	}

	run(msg, { waifu }) {
		return msg.say(`I'd give ${waifu} a ${Math.floor(Math.random() * 10) + 1}/10!`);
	}
};
