Files
xiao/commands/random-res/ship.js
T
2017-09-29 00:49:17 +00:00

27 lines
602 B
JavaScript

const { Command } = require('discord.js-commando');
const { list } = require('../../structures/Util');
module.exports = class ShipCommand extends Command {
constructor(client) {
super(client, {
name: 'ship',
aliases: ['rate'],
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, { things }) {
return msg.say(`I'd give ${list(things)} a ${Math.floor(Math.random() * 100) + 1}%!`);
}
};