Files
xiao/commands/random/offspring.js
T
2018-05-30 12:04:21 +00:00

19 lines
461 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',
memberName: 'offspring',
description: 'Determines 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)]}!`);
}
};