From 7d9dfcb6382371bcaf50c4d524b27056052692e1 Mon Sep 17 00:00:00 2001 From: Akrasia Date: Thu, 22 Apr 2021 08:01:41 +0000 Subject: [PATCH] Add 'commands/fun/ship' --- commands/fun/ship | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 commands/fun/ship diff --git a/commands/fun/ship b/commands/fun/ship new file mode 100644 index 0000000..8b4d4e0 --- /dev/null +++ b/commands/fun/ship @@ -0,0 +1,25 @@ +const Discord = require('discord.js'); +module.exports = { + name: "ship", + help: "Ship two people together by providing their names! \`{{p}}ship \`", + meta: { + category: 'Fun', + description: "Ship two people together by providing their names! >///<", + syntax: '`ship <@user1/name1> <@user2/name2>`', + extra: null + }, + async execute(message, msg, args, cmd, prefix, mention, client) { + + const start = message.mentions.members.first() + const end = message.mentions.members.map(m => m.user.username).splice(1) || args[1]; + if (!start && !end || !start || !end) return message.channel.send(this.help); + let finalName = start.slice(0, Math.floor(start.length / 2))+end.slice(Math.floor(end.length / 2)) + const Embed = new Discord.MessageEmbed() + .setColor("PURPLE") + .setThumbnail("https://media.discordapp.net/attachments/550550810145325056/834696984605622292/unknown.png?width=551&height=418") + .setTitle(start + ` & ` + end + `\'s Ship Name:`) + .setDescription(":sparkling_heart: "+finalName+" :sparkling_heart:") + .setFooter("What a cute ship!~") + message.channel.send(Embed); + } +} \ No newline at end of file