mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 15:56:52 +02:00
27 lines
602 B
JavaScript
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}%!`);
|
|
}
|
|
};
|