lvlt
Privateunrated
Content
138 lines{=(original):https://res.cloudinary.com/demo/image/fetch/f_png,w_934,h_282,r_10,g_north_west,c_thumb,x_0,y_0/l_one_pixel,w_894,h_242,r_25,e_colorize,co_black,o_50/l_one_pixel,c_fill,r_max,w_200,h_200,g_west,x_62,bo_5px_solid_rgb:EEAAEE,e_colorize,co_rgb:1A1630/l_one_pixel,w_557,h_2,x_117/l_text:Montserrat_52:Asty%27,co_white,g_west,x_305,y_-40/l_text:Lato_32_right:Rank%20%231,co_white,g_east,x_70,y_-40/l_text:Lato_32:Level%2029,co_white,g_west,x_305,y_30/l_text:Lato_24_right:2%2E1k%252F5%2E8k,co_white,g_east,x_70,y_30/l_one_pixel,w_557,h_36,g_south,x_117,y_41,e_colorize,co_rgb:1A1630,r_7,bo_2px_solid_white/l_one_pixel,w_22,h_36,g_west,x_306,y_80,e_colorize,co_rgb:EEAAEE,r_6/l_one_pixel,w_188,h_36,g_west,x_320,y_80,e_colorize,co_rgb:EEAAEE/l_text:Lato_30:36%25,co_white,g_south,x_117,y_50/https://i.imgur.com/0l0ZBCm.png}
{=(COMMENT):Command-related stuff. Hence the "c." prefix.}
{=(c.prefix):!}
{=(c.tagname):lvlt}
{=(c.input):```css
{c.prefix}{c.tagname} [image] <opacity> <color> <accent>```
**1) Image:** *(Mandatory!)*
Background image link to test.
*Previews the image at the same position as the bot displays it (`x: 0` and `y: 0`).*
**2) Opacity:** *(Optional. Defaults to `50`.)*
Transparency between `0` and `100` of the black box between foreground and background.
**3) Color:** *(Optional. Defaults to user color.)*
Hex code of avatar outline and XP bar color.
**4) Accent:** *(Optional. Defaults to white.)*
Hex code of text, horizontal bar and XP bar outline.
__Example__ with a dummy **image**, black box' **opacity** of `80`, `pink` **color** and `turquoise` **accent color**:
```css
{c.prefix}{c.tagname} https://i.imgur.com/0l0ZBCm.png 80 eeaaee 00ffe5```
*Note: The values for `level`, `rank`, `XP/XP` and `%XP` are all dummy values, not yours. Username and parameters are yours.*
}
{=(COMMENT):"Preparing" the user arguments to be used in checks.}
{=(jargs):{join(~):0 {args}}}
{=(uargs):{replace(#,):{upper:{args(3+)}}}}
{=(COMMENT):CHECKS!}
{=(lenArgs):{index($&%):{args} $&%}}
{=(isLink):{and({in(http):{1}}==true|{in(µµµµ):{replace(.jpg,µµµµ):{replace(.jpeg,µµµµ):{replace(.png,µµµµ):{replace(.gif,µµµµ):{replace(.webp,µµµµ):{1}}}}}}}==true):true|false}}
{=(COMMENT):Checks if the opacity argument is a positive number that is less than 100 (the max opacity).}
{=(opacityCheck):{and({contains({m:sgn({list(2):{jargs}})}):0 1}==true|{list(2):{jargs}}<=100):true|false}}
{=(lenColor):{index(%^&):{replace(, ):{uargs(1)}} %^&}}
{=(lenAccent):{index(%^&):{replace(, ):{uargs(2)}} %^&}}
{=(hex2numColor):{replace(A,10):{replace(B,11):{replace(C,12):{replace(D,13):{replace(E,14):{replace(F,15):{uargs(1)}}}}}}}}
{=(hex2numAccent):{replace(A,10):{replace(B,11):{replace(C,12):{replace(D,13):{replace(E,14):{replace(F,15):{uargs(2)}}}}}}}}
{=(hextestColor):{m:trunc({join(+):{replace(, ):{hex2numColor}}})}}
{=(hextestAccent):{m:trunc({join(+):{replace(, ):{hex2numAccent}}})}}
{=(COMMENT):Checks if color and accent are both hex codes and of the correct length (6).}
{=(colorCheck):{any({lenColor}!=6|{hextestColor}!={m:trunc({hextestColor}/1)}):false|true}}
{=(accentCheck):{any({lenAccent}!=6|{hextestAccent}!={m:trunc({hextestAccent}/1)}):false|true}}
{=(COMMENT):Default parameters.}
{=(d.image):https://i.imgur.com/0l0ZBCm.png}
{=(d.opacity):50}
{=(d.color):{upper:{replace(#,):{user(color)}}}}
{=(d.accent):{replace(#,):FFFFFF}}
{=(d.user):{replace(%25,%252F):{urlencode:{user(name)}}}}
{=(uarg):{upper:{args}}}
{=(COMMENT):Parameters grabbed from the argument, and with their default value if no argument was specified for it.}
{=(p.image):{and({lenArgs}>=1|{isLink}==true):{1}|{d.image}}}
{=(p.opacity):{and({lenArgs}>=2|{opacityCheck}==true):{2}|{d.opacity}}}
{=(p.color):{and({lenArgs}>=3|{colorCheck}==true):{replace(#,):{uarg(3)}}|{d.color}}}
{=(p.accent):{and({lenArgs}>=4|{accentCheck}==true):{replace(#,):{uarg(4)}}|{d.accent}}}
{=(p.user):{d.user}}
{=(COMMENT):Check default.}
{=(isdef.image):{if({p.image}=={d.image}):yes|no}}
{=(isdef.opacity):{if({p.opacity}=={d.opacity}):yes|no}}
{=(isdef.color):{if({p.color}=={d.color}):yes|no}}
{=(isdef.accent):{if({p.accent}=={d.accent}):yes|no}}
{=(isdef.user):{if({p.user}=={d.user}):yes|no}}
{=(COMMENT):Putting args in lists to return them later. Might not be needed.}
{=(arg1):{list(1):{jargs}}}
{=(arg2):{list(2):{jargs}}}
{=(arg3):{list(3):{jargs}}}
{=(arg4):{list(4):{jargs}}}
{=(COMMENT):Error messages to display depending on the situation.}
{=(er.link):`{arg1}` is not a valid direct image link.}
{=(er.opacity):`{arg2}` is not a valid opacity (not between 0 and 100).}
{=(er.color):`{arg3}` is not a valid hexadecimal color code. Valid example: (#)123ABC}
{=(er.accent):`{arg4}` is not a valid hexadecimal color accent code. Valid example: (#)123ABC}
{=(m.def):(Default)}
{=(link.dns):{p.image(3):/}}
{=(COMMENT):Putting all the transformations into separate variables, just because it's MUCH better to read, troubleshoot and understand what's going on that way.}
{=(COMMENT):Base background}
{=(t.base):f_png,w_934,h_282,r_10,g_north_west,c_thumb,x_0,y_0}
{=(COMMENT):Shapes.}
{=(t.box):l_one_pixel,w_894,h_242,r_25,e_colorize,co_black,o_{p.opacity}}
{=(t.avatar):l_one_pixel,c_fill,r_max,w_200,h_200,g_west,x_62,bo_5px_solid_rgb:{p.color},e_colorize,co_rgb:1A1630}
{=(t.sepline):l_one_pixel,w_557,h_2,x_117,e_colorize,co_rgb:{p.accent}}
{=(COMMENT):Text on image.}
{=(t.user):_text:Montserrat_52:{p.user},co_rgb:{p.accent},g_west,x_305,y_-40}
{=(t.rank):l_text:Lato_32_right:Rank%20%231,co_rgb:{p.accent},g_east,x_70,y_-40}
{=(t.level):l_text:Lato_32:Level%2029,co_rgb:{p.accent},g_west,x_305,y_30}
{=(t.xpoutof):l_text:Lato_24_right:2%2E1k%252F5%2E8k,co_rgb:{p.accent},g_east,x_70,y_30}
{=(COMMENT):XP Bar.}
{=(t.xpbg):l_one_pixel,w_557,h_36,g_south,x_117,y_41,e_colorize,co_rgb:1A1630,r_7,bo_2px_solid_rgb:{p.accent}}
{=(t.xpprefix):l_one_pixel,w_22,h_36,g_west,x_306,y_80,e_colorize,co_rgb:{p.color},r_6}
{=(t.xpfill):l_one_pixel,w_188,h_36,g_west,x_320,y_80,e_colorize,co_rgb:{p.color}}
{=(t.xppercent):l_text:Lato_30:36%25,co_white,g_south,x_117,y_50}
{=(COMMENT):Output and Embed Management.}
{=(e.banner):https://res.cloudinary.com/demo/image/fetch/{t.base}/{t.box}/{t.avatar}/{t.sepline}/l{t.user}/{t.rank}/{t.level}/{t.xpoutof}/{t.xpbg}/{t.xpprefix}/{t.xpfill}/{t.xppercent}/{p.image}}
{=(m.success):
{user(mention)}
**Image:** [`{link.dns} link`]({p.image}) {if({isdef.image}==yes):{m.def}}
**Opacity:** `{p.opacity}` {if({isdef.opacity}==yes):{m.def}}
**Color:** `{p.color}` {if({isdef.color}==yes):{m.def}}
**Accent:** `{p.accent}` {if({isdef.accent}==yes):{m.def}}
**Result:** [`Banner URL`]({e.banner})}
{=(m.help):{c.input}}
{=(e.output):{any({lenArgs}==0|{lower:{1}}==help):{m.help}|{m.success}}}
{=(docs):https://docs.carl.gg/levels/levels/#level-settings}
{embed(color):#2F3136}
{=(e.title)::frame_photo: Level Card Previewer}
{=(e.titleurl):{docs}}
{=(e.footer):Levels are Premium • Custom command made by Asty'#8926}
{=(debug):__Debug__:
lenArgs: `{lenArgs}`
Banner link:```css
{e.banner}```
}
{del}Embed
1 line{"url": "https://docs.carl.gg/levels/levels/#level-settings", "color": 5198940, "image": {"url": "{e.banner}"}, "title": "{e.title}", "footer": {"text": "{e.footer}"}, "description": "{e.output}\n"}Raw JSON
{
"id": 432337,
"created_at": "2020-11-16T23:11:14.000Z",
"tag_name": "lvlt",
"nsfw": false,
"owner_id": "149926720114262016",
"uses": 89,
"description": null,
"restricted": false,
"shared": false,
"deleted": false,
"safe": "unrated",
"hidden": false,
"guild_id": "314660900302749696",
"sharer": "149926720114262016",
"content": "{=(original):https://res.cloudinary.com/demo/image/fetch/f_png,w_934,h_282,r_10,g_north_west,c_thumb,x_0,y_0/l_one_pixel,w_894,h_242,r_25,e_colorize,co_black,o_50/l_one_pixel,c_fill,r_max,w_200,h_200,g_west,x_62,bo_5px_solid_rgb:EEAAEE,e_colorize,co_rgb:1A1630/l_one_pixel,w_557,h_2,x_117/l_text:Montserrat_52:Asty%27,co_white,g_west,x_305,y_-40/l_text:Lato_32_right:Rank%20%231,co_white,g_east,x_70,y_-40/l_text:Lato_32:Level%2029,co_white,g_west,x_305,y_30/l_text:Lato_24_right:2%2E1k%252F5%2E8k,co_white,g_east,x_70,y_30/l_one_pixel,w_557,h_36,g_south,x_117,y_41,e_colorize,co_rgb:1A1630,r_7,bo_2px_solid_white/l_one_pixel,w_22,h_36,g_west,x_306,y_80,e_colorize,co_rgb:EEAAEE,r_6/l_one_pixel,w_188,h_36,g_west,x_320,y_80,e_colorize,co_rgb:EEAAEE/l_text:Lato_30:36%25,co_white,g_south,x_117,y_50/https://i.imgur.com/0l0ZBCm.png}\n\n{=(COMMENT):Command-related stuff. Hence the \"c.\" prefix.}\n{=(c.prefix):!}\n{=(c.tagname):lvlt}\n\n{=(c.input):```css\n{c.prefix}{c.tagname} [image] <opacity> <color> <accent>```\n**1) Image:** *(Mandatory!)*\nBackground image link to test.\n*Previews the image at the same position as the bot displays it (`x: 0` and `y: 0`).* \n\n**2) Opacity:** *(Optional. Defaults to `50`.)*\nTransparency between `0` and `100` of the black box between foreground and background. \n\n**3) Color:** *(Optional. Defaults to user color.)*\nHex code of avatar outline and XP bar color. \n\n**4) Accent:** *(Optional. Defaults to white.)*\nHex code of text, horizontal bar and XP bar outline. \n\n__Example__ with a dummy **image**, black box' **opacity** of `80`, `pink` **color** and `turquoise` **accent color**:\n```css\n{c.prefix}{c.tagname} https://i.imgur.com/0l0ZBCm.png 80 eeaaee 00ffe5```\n*Note: The values for `level`, `rank`, `XP/XP` and `%XP` are all dummy values, not yours. Username and parameters are yours.*\n}\n\n{=(COMMENT):\"Preparing\" the user arguments to be used in checks.}\n{=(jargs):{join(~):0 {args}}}\n{=(uargs):{replace(#,):{upper:{args(3+)}}}}\n\n{=(COMMENT):CHECKS!}\n{=(lenArgs):{index($&%):{args} $&%}}\n{=(isLink):{and({in(http):{1}}==true|{in(µµµµ):{replace(.jpg,µµµµ):{replace(.jpeg,µµµµ):{replace(.png,µµµµ):{replace(.gif,µµµµ):{replace(.webp,µµµµ):{1}}}}}}}==true):true|false}}\n{=(COMMENT):Checks if the opacity argument is a positive number that is less than 100 (the max opacity).}\n{=(opacityCheck):{and({contains({m:sgn({list(2):{jargs}})}):0 1}==true|{list(2):{jargs}}<=100):true|false}}\n\n{=(lenColor):{index(%^&):{replace(, ):{uargs(1)}} %^&}}\n{=(lenAccent):{index(%^&):{replace(, ):{uargs(2)}} %^&}}\n\n{=(hex2numColor):{replace(A,10):{replace(B,11):{replace(C,12):{replace(D,13):{replace(E,14):{replace(F,15):{uargs(1)}}}}}}}}\n{=(hex2numAccent):{replace(A,10):{replace(B,11):{replace(C,12):{replace(D,13):{replace(E,14):{replace(F,15):{uargs(2)}}}}}}}}\n{=(hextestColor):{m:trunc({join(+):{replace(, ):{hex2numColor}}})}}\n{=(hextestAccent):{m:trunc({join(+):{replace(, ):{hex2numAccent}}})}}\n\n{=(COMMENT):Checks if color and accent are both hex codes and of the correct length (6).}\n{=(colorCheck):{any({lenColor}!=6|{hextestColor}!={m:trunc({hextestColor}/1)}):false|true}}\n{=(accentCheck):{any({lenAccent}!=6|{hextestAccent}!={m:trunc({hextestAccent}/1)}):false|true}}\n\n{=(COMMENT):Default parameters.}\n{=(d.image):https://i.imgur.com/0l0ZBCm.png}\n{=(d.opacity):50}\n{=(d.color):{upper:{replace(#,):{user(color)}}}}\n{=(d.accent):{replace(#,):FFFFFF}}\n{=(d.user):{replace(%25,%252F):{urlencode:{user(name)}}}}\n\n{=(uarg):{upper:{args}}}\n\n{=(COMMENT):Parameters grabbed from the argument, and with their default value if no argument was specified for it.}\n{=(p.image):{and({lenArgs}>=1|{isLink}==true):{1}|{d.image}}}\n{=(p.opacity):{and({lenArgs}>=2|{opacityCheck}==true):{2}|{d.opacity}}}\n{=(p.color):{and({lenArgs}>=3|{colorCheck}==true):{replace(#,):{uarg(3)}}|{d.color}}}\n{=(p.accent):{and({lenArgs}>=4|{accentCheck}==true):{replace(#,):{uarg(4)}}|{d.accent}}}\n{=(p.user):{d.user}}\n\n{=(COMMENT):Check default.}\n{=(isdef.image):{if({p.image}=={d.image}):yes|no}}\n{=(isdef.opacity):{if({p.opacity}=={d.opacity}):yes|no}}\n{=(isdef.color):{if({p.color}=={d.color}):yes|no}}\n{=(isdef.accent):{if({p.accent}=={d.accent}):yes|no}}\n{=(isdef.user):{if({p.user}=={d.user}):yes|no}}\n\n{=(COMMENT):Putting args in lists to return them later. Might not be needed.}\n{=(arg1):{list(1):{jargs}}}\n{=(arg2):{list(2):{jargs}}}\n{=(arg3):{list(3):{jargs}}}\n{=(arg4):{list(4):{jargs}}}\n\n{=(COMMENT):Error messages to display depending on the situation.}\n{=(er.link):`{arg1}` is not a valid direct image link.}\n{=(er.opacity):`{arg2}` is not a valid opacity (not between 0 and 100).}\n{=(er.color):`{arg3}` is not a valid hexadecimal color code. Valid example: (#)123ABC}\n{=(er.accent):`{arg4}` is not a valid hexadecimal color accent code. Valid example: (#)123ABC}\n\n{=(m.def):(Default)}\n\n{=(link.dns):{p.image(3):/}}\n\n\n{=(COMMENT):Putting all the transformations into separate variables, just because it's MUCH better to read, troubleshoot and understand what's going on that way.}\n{=(COMMENT):Base background}\n{=(t.base):f_png,w_934,h_282,r_10,g_north_west,c_thumb,x_0,y_0}\n\n{=(COMMENT):Shapes.}\n{=(t.box):l_one_pixel,w_894,h_242,r_25,e_colorize,co_black,o_{p.opacity}}\n{=(t.avatar):l_one_pixel,c_fill,r_max,w_200,h_200,g_west,x_62,bo_5px_solid_rgb:{p.color},e_colorize,co_rgb:1A1630}\n{=(t.sepline):l_one_pixel,w_557,h_2,x_117,e_colorize,co_rgb:{p.accent}}\n\n{=(COMMENT):Text on image.}\n{=(t.user):_text:Montserrat_52:{p.user},co_rgb:{p.accent},g_west,x_305,y_-40}\n{=(t.rank):l_text:Lato_32_right:Rank%20%231,co_rgb:{p.accent},g_east,x_70,y_-40}\n{=(t.level):l_text:Lato_32:Level%2029,co_rgb:{p.accent},g_west,x_305,y_30}\n{=(t.xpoutof):l_text:Lato_24_right:2%2E1k%252F5%2E8k,co_rgb:{p.accent},g_east,x_70,y_30}\n\n{=(COMMENT):XP Bar.}\n{=(t.xpbg):l_one_pixel,w_557,h_36,g_south,x_117,y_41,e_colorize,co_rgb:1A1630,r_7,bo_2px_solid_rgb:{p.accent}}\n{=(t.xpprefix):l_one_pixel,w_22,h_36,g_west,x_306,y_80,e_colorize,co_rgb:{p.color},r_6}\n{=(t.xpfill):l_one_pixel,w_188,h_36,g_west,x_320,y_80,e_colorize,co_rgb:{p.color}}\n{=(t.xppercent):l_text:Lato_30:36%25,co_white,g_south,x_117,y_50}\n\n\n{=(COMMENT):Output and Embed Management.}\n{=(e.banner):https://res.cloudinary.com/demo/image/fetch/{t.base}/{t.box}/{t.avatar}/{t.sepline}/l{t.user}/{t.rank}/{t.level}/{t.xpoutof}/{t.xpbg}/{t.xpprefix}/{t.xpfill}/{t.xppercent}/{p.image}}\n\n{=(m.success):\n{user(mention)}\n**Image:** [`{link.dns} link`]({p.image}) {if({isdef.image}==yes):{m.def}}\n**Opacity:** `{p.opacity}` {if({isdef.opacity}==yes):{m.def}}\n**Color:** `{p.color}` {if({isdef.color}==yes):{m.def}}\n**Accent:** `{p.accent}` {if({isdef.accent}==yes):{m.def}}\n**Result:** [`Banner URL`]({e.banner})}\n{=(m.help):{c.input}}\n\n{=(e.output):{any({lenArgs}==0|{lower:{1}}==help):{m.help}|{m.success}}}\n\n{=(docs):https://docs.carl.gg/levels/levels/#level-settings}\n\n{embed(color):#2F3136}\n{=(e.title)::frame_photo: Level Card Previewer}\n{=(e.titleurl):{docs}}\n{=(e.footer):Levels are Premium • Custom command made by Asty'#8926}\n\n{=(debug):__Debug__:\nlenArgs: `{lenArgs}`\nBanner link:```css\n{e.banner}```\n}\n{del}",
"embed": "{\"url\": \"https://docs.carl.gg/levels/levels/#level-settings\", \"color\": 5198940, \"image\": {\"url\": \"{e.banner}\"}, \"title\": \"{e.title}\", \"footer\": {\"text\": \"{e.footer}\"}, \"description\": \"{e.output}\\n\"}",
"last_fetched": "2026-10-20T23:10:26.025Z"
}