Files
xiao/commands/response/offspring.js
T
Daniel Odendahl Jr 877f720cfc msg
2017-04-30 22:56:59 +00:00

19 lines
532 B
JavaScript

const { Command } = require('discord.js-commando');
const genders = ['boy', 'girl'];
module.exports = class OffspringCommand extends Command {
constructor(client) {
super(client, {
name: 'offspring',
group: 'response',
memberName: 'offspring',
description: 'Tells you if your new child is a boy or a girl.'
});
}
run(msg) {
const gender = genders[Math.floor(Math.random() * genders.length)];
return msg.say(`It's a ${gender}!`);
}
};