reorder text with multiple lines

This commit is contained in:
derpystuff 2023-06-28 18:58:06 +02:00
parent 2b96a3d231
commit 0bdb05fd29

View file

@ -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.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).`)]}) if(args.style > 4 || args.style < 1) return editOrReply(context, {embeds:[createEmbed("warning", context, `Invalid Parameter (style).`)]})
let lines = `${args.text}| | `.split('|') let lines = `${args.text}| | `.split('|')
if(args.text.includes('|')) lines = [lines[1], lines[2], lines[0]]
try{ try{
let res = await retroWave(context, args.background, args.style, lines[2], lines[0], lines[1]) let res = await retroWave(context, args.background, args.style, lines[2], lines[0], lines[1])