Files
xiao/commands/random-res/ship.js
T
Daniel Odendahl Jr 56ceba6436 Fix Small Mistake
2017-06-17 03:30:30 +00:00

27 lines
764 B
JavaScript

const Command = require('../../structures/Command');
module.exports = class ShipCommand extends Command {
constructor(client) {
super(client, {
name: 'ship',
group: 'random-res',
memberName: 'ship',
description: 'Ships things/people together.',
args: [
{
key: 'things',
prompt: 'What do you want to ship together?',
type: 'string',
infinite: true
}
]
});
}
run(msg, args) {
const { things } = args;
const rating = Math.floor(Math.random() * 100) + 1;
return msg.say(`I'd give ${things.join(' and ')} a ${rating}%!`);
}
};