Merge pull request 'Update 'commands/fun/ships.js'' (#6) from akrasia-patch-1 into master

Reviewed-on: http://git.wubzy.xyz/Luno/Luno/pulls/6
master
Akrasia 4 years ago
commit ea82f3c75f
  1. 2
      commands/fun/ships.js

@ -13,7 +13,7 @@ module.exports = {
const start = message.mentions.members.first().user.username || args[0]; const start = message.mentions.members.first().user.username || args[0];
const end = message.mentions.members.map(m => m.user.username).splice(1) || args[1]; 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); 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 / 1 + 1))}` let finalName = start.slice(0, Math.floor(start.length / 2))+end.slice(Math.floor(end.length / 1 + 1));
const Embed = new Discord.MessageEmbed() const Embed = new Discord.MessageEmbed()
.setColor("PURPLE") .setColor("PURPLE")
.setThumbnail("https://media.discordapp.net/attachments/550550810145325056/834696984605622292/unknown.png?width=551&height=418") .setThumbnail("https://media.discordapp.net/attachments/550550810145325056/834696984605622292/unknown.png?width=551&height=418")

Loading…
Cancel
Save