cps

Dynamic Cyberpunk-themed Server Info Banner by Asty'#8926 IMPORTANT: An admin/mod MUST use the default `serverinfo` command at least once before using this tag ever, to force a cache refresh for the bot. Context: With the recent release of the video game Cyberpunk 2077, I thought it would be cool to have a command that generates an image to get server info, with the same theme as the game. Probably new servers will be created with that theme, so it's a good moment to have it. Description: Generates an image with dynamic information about your server: server owner, member count, creation date and number of channels. The creation date can be displayed as MMDDYY or DDMMYY as you wish. You can change the color and font of the text and even the background image and put your own if you wish to. I put custom user settings that can be changed very easily in the code, so don't hesitate to read the comments in there. Hope you enjoy!

Sharedunrated

Content

48 lines
{=(COMMENT):USER SETTINGS}
{=(COMMENT):Date format. Can either be DDMMYY or MMDDYY, nothing else.
Will display the server's creation date with either the day or month first.}
{=(date.format):MMDDYY}

{=(COMMENT):Parameters}
{=(s.name):{urlencode:{upper:{server}}}}
{=(s.owner.raw):{server(owner)}}
{=(s.owner):{urlencode:{upper:{s.owner.raw(1):#}}}}
{=(s.members):{replace(st,):{replace(nd,):{replace(rd,):{replace(th,):{ord:{server(members)}}}}}}}
{=(s.created):{replace(/,%252F):{strf({server(created_at)}):{replace(DD,%-d/):{replace(MM,%-m/):{replace(YY,):{upper:{date.format}}}}%Y}}}}
{=(s.channels):{server(channels)}}

{=(COMMENT):Fonts name, size and weight (in that order) for titles and numerics.}
{=(ft.server):Orbitron 36 bold}
{=(ft.number):Rajdhani 44 bold}

{=(owner.spaced):{replace(, ):{replace(%20, ):{s.owner}}}}
{=(owner.length):{index($&%):{owner.spaced(2+)} $&%}}
{=(owner.size):{if({owner.length}<=10):{ft.number(2)}|{m:trunc({ft.number(2)}/1.2)}}}
{=(ft.owner):{ft.number(1)} {owner.size} {ft.number(3)}}

{=(COMMENT):Colors}
{=(clr.yellow):FAF00D}
{=(clr.blue):2197B4}

{=(COMMENT):Base URL}
{=(url.prefix):https://res.cloudinary.com/demo/image/fetch/}
{=(bg.asset):https://i.imgur.com/VPYI09R.png}

{=(COMMENT):Text Positioning
Format: Gravity X Y
Reminder: Gravity can be north, east, south or west}
{=(pos.server):north 0 15}
{=(pos.owner):east 500 -36}
{=(pos.created):east {pos.owner(2)} 52}
{=(pos.members):east 42 {pos.owner(3)}}
{=(pos.channels):east {pos.members(2)} {pos.created(3)}}

{=(COMMENT):Banner URL}
{=(cl.server):l_text:{join(_):{ft.server}}:{s.name},co_rgb:{clr.yellow},g_{pos.server(1)},x_{pos.server(2)},y_{pos.server(3)}}
{=(cl.owner):l_text:{join(_):{ft.owner}}:{s.owner},co_rgb:{clr.blue},g_{pos.owner(1)},x_{pos.owner(2)},y_{pos.owner(3)}}
{=(cl.created):l_text:{join(_):{ft.number}}:{s.created},co_rgb:{clr.blue},g_{pos.created(1)},x_{pos.created(2)},y_{pos.created(3)}}
{=(cl.members):l_text:{join(_):{ft.number}}:{s.members},co_rgb:{clr.blue},g_{pos.members(1)},x_{pos.members(2)},y_{pos.members(3)}}
{=(cl.channels):l_text:{join(_):{ft.number}}:{s.channels},co_rgb:{clr.blue},g_{pos.channels(1)},x_{pos.channels(2)},y_{pos.channels(3)}}

{=(final.url):{url.prefix}/{cl.server}/{cl.owner}/{cl.created}/{cl.members}/{cl.channels}/{bg.asset}}
{final.url}
Raw JSON
{
  "id": 478453,
  "created_at": "2020-12-11T08:44:46.000Z",
  "tag_name": "cps",
  "nsfw": false,
  "owner_id": "149926720114262016",
  "uses": 29,
  "description": "Dynamic Cyberpunk-themed Server Info Banner\nby Asty'#8926\n\nIMPORTANT: An admin/mod MUST use the default `serverinfo` command at least once before using this tag ever, to force a cache refresh for the bot. \n\nContext:\nWith the recent release of the video game Cyberpunk 2077, I thought it would be cool to have a command that generates an image to get server info, with the same theme as the game.\nProbably new servers will be created with that theme, so it's a good moment to have it.\n\nDescription:\nGenerates an image with dynamic information about your server: server owner, member count, creation date and number of channels.\nThe creation date can be displayed as MMDDYY or DDMMYY as you wish. You can change the color and font of the text and even the background image and put your own if you wish to.\nI put custom user settings that can be changed very easily in the code, so don't hesitate to read the comments in there.\n\nHope you enjoy!",
  "restricted": false,
  "shared": true,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "314660900302749696",
  "sharer": "149926720114262016",
  "content": "{=(COMMENT):USER SETTINGS}\n{=(COMMENT):Date format. Can either be DDMMYY or MMDDYY, nothing else.\nWill display the server's creation date with either the day or month first.}\n{=(date.format):MMDDYY}\n\n{=(COMMENT):Parameters}\n{=(s.name):{urlencode:{upper:{server}}}}\n{=(s.owner.raw):{server(owner)}}\n{=(s.owner):{urlencode:{upper:{s.owner.raw(1):#}}}}\n{=(s.members):{replace(st,):{replace(nd,):{replace(rd,):{replace(th,):{ord:{server(members)}}}}}}}\n{=(s.created):{replace(/,%252F):{strf({server(created_at)}):{replace(DD,%-d/):{replace(MM,%-m/):{replace(YY,):{upper:{date.format}}}}%Y}}}}\n{=(s.channels):{server(channels)}}\n\n{=(COMMENT):Fonts name, size and weight (in that order) for titles and numerics.}\n{=(ft.server):Orbitron 36 bold}\n{=(ft.number):Rajdhani 44 bold}\n\n{=(owner.spaced):{replace(, ):{replace(%20, ):{s.owner}}}}\n{=(owner.length):{index($&%):{owner.spaced(2+)} $&%}}\n{=(owner.size):{if({owner.length}<=10):{ft.number(2)}|{m:trunc({ft.number(2)}/1.2)}}}\n{=(ft.owner):{ft.number(1)} {owner.size} {ft.number(3)}}\n\n{=(COMMENT):Colors}\n{=(clr.yellow):FAF00D}\n{=(clr.blue):2197B4}\n\n{=(COMMENT):Base URL}\n{=(url.prefix):https://res.cloudinary.com/demo/image/fetch/}\n{=(bg.asset):https://i.imgur.com/VPYI09R.png}\n\n{=(COMMENT):Text Positioning\nFormat: Gravity X Y\nReminder: Gravity can be north, east, south or west}\n{=(pos.server):north 0 15}\n{=(pos.owner):east 500 -36}\n{=(pos.created):east {pos.owner(2)} 52}\n{=(pos.members):east 42 {pos.owner(3)}}\n{=(pos.channels):east {pos.members(2)} {pos.created(3)}}\n\n{=(COMMENT):Banner URL}\n{=(cl.server):l_text:{join(_):{ft.server}}:{s.name},co_rgb:{clr.yellow},g_{pos.server(1)},x_{pos.server(2)},y_{pos.server(3)}}\n{=(cl.owner):l_text:{join(_):{ft.owner}}:{s.owner},co_rgb:{clr.blue},g_{pos.owner(1)},x_{pos.owner(2)},y_{pos.owner(3)}}\n{=(cl.created):l_text:{join(_):{ft.number}}:{s.created},co_rgb:{clr.blue},g_{pos.created(1)},x_{pos.created(2)},y_{pos.created(3)}}\n{=(cl.members):l_text:{join(_):{ft.number}}:{s.members},co_rgb:{clr.blue},g_{pos.members(1)},x_{pos.members(2)},y_{pos.members(3)}}\n{=(cl.channels):l_text:{join(_):{ft.number}}:{s.channels},co_rgb:{clr.blue},g_{pos.channels(1)},x_{pos.channels(2)},y_{pos.channels(3)}}\n\n{=(final.url):{url.prefix}/{cl.server}/{cl.owner}/{cl.created}/{cl.members}/{cl.channels}/{bg.asset}}\n{final.url}",
  "embed": "{}",
  "last_fetched": "2026-10-20T23:28:46.108Z"
}