From 0bdb05fd29f55935de90d811afa237b2a52ec78e Mon Sep 17 00:00:00 2001 From: derpystuff <3515180-derpystuff@users.noreply.gitlab.com> Date: Wed, 28 Jun 2023 18:58:06 +0200 Subject: [PATCH] reorder text with multiple lines --- commands/message/image/photofunia/retro-wave.js | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/message/image/photofunia/retro-wave.js b/commands/message/image/photofunia/retro-wave.js index 607bd6e..b7c61a0 100644 --- a/commands/message/image/photofunia/retro-wave.js +++ b/commands/message/image/photofunia/retro-wave.js @@ -27,6 +27,7 @@ module.exports = { if(args.background > 5 || args.background < 1) return editOrReply(context, {embeds:[createEmbed("warning", context, `Invalid Parameter (background).`)]}) if(args.style > 4 || args.style < 1) return editOrReply(context, {embeds:[createEmbed("warning", context, `Invalid Parameter (style).`)]}) let lines = `${args.text}| | `.split('|') + if(args.text.includes('|')) lines = [lines[1], lines[2], lines[0]] try{ let res = await retroWave(context, args.background, args.style, lines[2], lines[0], lines[1])