Files
xiao/commands/random-res/offspring.js
T
2017-09-25 13:45:57 +00:00

19 lines
462 B
JavaScript

const Command = require('../../structures/Command');
const genders = ['boy', 'girl'];
module.exports = class OffspringCommand extends Command {
constructor(client) {
super(client, {
name: 'offspring',
aliases: ['sex'],
group: 'random-res',
memberName: 'offspring',
description: 'Decides if your new child will be a boy or a girl.'
});
}
run(msg) {
return msg.say(`It's a ${genders[Math.floor(Math.random() * genders.length)]}!`);
}
};