More uniform group names

This commit is contained in:
Dragon Fire
2020-04-09 14:37:24 -04:00
parent 35970740e3
commit 2bf570f3d2
139 changed files with 154 additions and 154 deletions
+34
View File
@@ -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))}`);
}
};