mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 18:29:14 +02:00
More uniform group names
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
const Command = require('../../structures/Command');
|
||||
|
||||
module.exports = class ShipNameCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'ship-name',
|
||||
group: 'edit-text',
|
||||
memberName: 'ship-name',
|
||||
description: 'Creates a ship name from two names.',
|
||||
args: [
|
||||
{
|
||||
key: 'start',
|
||||
label: 'start name',
|
||||
prompt: 'What name should be at the start of the ship name?',
|
||||
type: 'string',
|
||||
max: 500,
|
||||
parse: start => start.toLowerCase()
|
||||
},
|
||||
{
|
||||
key: 'end',
|
||||
label: 'end name',
|
||||
prompt: 'What name should be at the end of the ship name?',
|
||||
type: 'string',
|
||||
max: 500,
|
||||
parse: end => end.toLowerCase()
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
run(msg, { start, end }) {
|
||||
return msg.say(`${start.slice(0, Math.floor(start.length / 2))}${end.slice(Math.floor(end.length / 2))}`);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user