mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 06:33:05 -04:00
reorder text with multiple lines
This commit is contained in:
parent
2b96a3d231
commit
0bdb05fd29
1 changed files with 1 additions and 0 deletions
|
@ -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])
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue