item

Privateunrated

Content

102 lines
{=(COMMENT):Channel desired for redirection}
{=(redirChannel):1006341905350664313}
 
{=(COMMENT): Requirements for channel and error message}
{require(Not here! If you have found an item, make sure to use the !item [map] [screenshot] command in <#1006341880189046825>):1006341880189046825,}
 
{=(COMMENT):Deletes the user input for a cleaner chat.}
{delete}
 
{=(COMMENT):Properly formats the user arguments to use and check for later. Basically separates them into two parts. One before and one after the image link.}
{=(userArgs):{join():{args(1):http}} {args(2):http}}
 
{=(COMMENT):---CHECKS AND CONDITIONAL STATEMENTS---}
{=(COMMENT):Lowercases the first argument that's the map name the user inputs. Allows the map name to not be case sensitive.}
{=(l1):{lower:{userArgs(1)}}}
{=(COMMENT):Returns the second argument (that will be the image link) if it has been provided, otherwise returns nothing.}
{=(l2):{if({userArgs(2)}!={1}):http{userArgs(2)}}}
 
{=(COMMENT):Checks if there is a user argument. Returns "true" or "false" conditionally. To reuse later.}
{=(isArgs):{if({1}!=):true|false}}
 
{=(COMMENT):Available map names the user is allowed to input. Only allows the combined words version of a map name. e.g. Two Towers should be submitted as TwoTowers".}
{=(map):dirt Blue Castle Ruins Feedlot TwoTowers Shellville Shipyard Moonbase FortFlip Road DeathPit Field DirtBase CastleArena SpaceArena DuelPyramid PalaceSiege Cluckgrounds MudGulch SpaceFactory SkyScratcher BioHazard JailBreak Bastion Temple Stage FourQuarters Blender Haunted Catacombs Overcooked Ramases Sparta Downfall Wreckage Trainyard Junction Rivals StaxArena Helix Jinx DirtToo KingsCourt Scales Enchanted Eggcrates Bridge Timetwist Growler Vert Wimble Rats}
 
{=(COMMENT):Checks if the map name input is a valid map name. Returns "true" if so, otherwise "false".}
{=(isValidMap):{contains({l1}):{lower:{map}}}}
 
{=(COMMENT):Checks if the input link is a valid image link. Returns "true" or "false" accordingly.}
{=(isImage):{if({index(true):{in(.jpg):{l2}} {in(.png):{l2}} {in(.gif):{l2}} {in(.webp):{l2}}}!=-1):true|false}}
 
{=(len.l1):{index($&!):{args(1):http} $&!}}
 
{=(isLenLT2):{if({len.l1}<=2):true|false}}
 
{=(COMMENT):Full check to determine if the submission is successful in the end or not.}
{=(fullCheck):{all({l2}!=|{isLenLT2}==true|{isValidMap}==true|{isImage}==true):true|false}}
 
{=():}
 
{=(COMMENT):---REACTION---}
{=(COMMENT):Up and down custom reactions.}
{=(react.up):<:t_upd:725594371130654720>}
{=(react.down):<:t_down:725593075111559279>}
{=(COMMENT):Conditionally reacts to the redirected embed when the submission is successful.}
{{if({fullCheck}==true):react: {react.up} {react.down}}}
 
{=(COMMENT):---REDIRECT---}
{=(COMMENT):Conditionally redirects the tag's attached embed when the submission is successful.}
{{if({fullCheck}==true):redirect:{redirChannel}}}
 
{=(COMMENT):---OUTPUT MANAGEMENT (CURRENT CHANNEL)---}
{=(COMMENT):We save emojis as variables we will eventually use in outputs.}
{=(emoji.cmark):<:GreenTick:699124840879226922>}
{=(emoji.cross):<:RedTick:699124870352732251>}
{=(COMMENT):Capitalizes the first letter of each word in the map input.}
{=(preformattedMap):{replace( z, Z):{replace( y, Y):{replace( x, X):{replace( w, W):{replace( v, V):{replace( u, U):{replace( t, T):{replace( s, S):{replace( r, R):{replace( q, Q):{replace( p, P):{replace( o, O):{replace( n, N):{replace( m, M):{replace( l, L):{replace( k, K):{replace( j, J):{replace( i, I):{replace( h, H):{replace( g, G):{replace( f, F):{replace( e, E):{replace( d, D):{replace( c, C):{replace( a, B):{replace( a, A): {lower:{args(1):http}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
{=(formattedMap):{preformattedMap(+3)}}
 
{=(COMMENT):Image variable to call in the embed's image URL field. Breaks the tag's attached embed if the submission is not successful, otherwise returns the valid image link.}
{=(image):{if({fullCheck}==true):{l2}|plaintext}}
 
{=(COMMENT):Detects the Domain Name of the image link provided. It's just for extra security for staff who reviews before clicking on a link.}
{=(DNS):{image(3):/}}
 
{=(COMMENT):Embed Description. Contains the formatted name of the quest from the user input, as well as a hyperlink to the submission with the DNS used for the image hosting service for extra security.}
{=(description):Submitted by: {user(mention)}
Map found in: **{formattedMap}**
[Submission ({DNS} Link)]({image})}
 
{=(COMMENT):Messages to display in the CURRENT CHANNEL.}
{=(COMMENT):Message when the request is complete and has been submitted.}
{=(msg.sub):{emoji.cmark}Congratulations {user(mention)}! Your item you found on **{formattedMap}** has been **successfully**  submitted.
 
It will be reviewed by the mods and if found to be valid, you will see it updated shortly in <#1006352253768179722>}
 
{=(COMMENT):Message when the request is incomplete and has not been submitted.}
{=(msg.notsub):{emoji.cross}Oh No {user(mention)}, your submission for the item found on **{formattedMap}** role has **not** been submitted.
 
 Please check your formatting, make sure the image link you provided is valid and then ask for help in <#1006341634130194442>.}
 
{=(COMMENT):Message to return conditionally.}
{=(msg.current):{if({fullCheck}==true):{msg.sub}|{msg.notsub}}}
 
{=(COMMENT):Saves green and red colors' hex code as variables, to then return the right color accordingly.}
{=(color.green):#22F522}
{=(color.red):#F11515}
{=(color.current):{if({fullCheck}==true):{color.green}|{color.red}}}
 
{=(COMMENT):Sends the success or error message in the current channel accordingly.}
{c:embed {channel(id)} {color.current} |{msg.current}}
{=(COMMENT):The override block below makes sure the current channel's embed will send even if the user normally doesn't have the permissions to use the embed command.}
{override}
 
{=(COMMENT):---EMBED FIELDS MANAGEMENT (REDIRECTED)---}
{=(authorName):{user(name)}}
{=(COMMENT):Returns the static version of the user avatar in case it's animated. You can remove the replace block if you don't mind. I just think it's overall distracting, but it's up to personal preference.}
{=(authorAvatar):{replace(.gif,.png):{user(avatar)}}}
{=(COMMENT):Embed Title.}
{=(title):Found Item Submission #{uses}}
 
{=(COMMENT):Embed Side Color.}
{embed(color):#0060FA}

Embed

1 line
{"color": 2290978, "image": {"url": "{image}"}, "title": "{title}", "author": {"name": "{authorName}", "icon_url": "{authorAvatar}"}, "description": "{description}"}
Raw JSON
{
  "id": 1509065,
  "created_at": "2022-08-09T21:13:04.000Z",
  "tag_name": "item",
  "nsfw": false,
  "owner_id": "474006005840216069",
  "uses": 2033,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "350339162177798154",
  "sharer": "474006005840216069",
  "content": "{=(COMMENT):Channel desired for redirection}\n{=(redirChannel):1006341905350664313}\n \n{=(COMMENT): Requirements for channel and error message}\n{require(Not here! If you have found an item, make sure to use the !item [map] [screenshot] command in <#1006341880189046825>):1006341880189046825,}\n \n{=(COMMENT):Deletes the user input for a cleaner chat.}\n{delete}\n \n{=(COMMENT):Properly formats the user arguments to use and check for later. Basically separates them into two parts. One before and one after the image link.}\n{=(userArgs):{join():{args(1):http}} {args(2):http}}\n \n{=(COMMENT):---CHECKS AND CONDITIONAL STATEMENTS---}\n{=(COMMENT):Lowercases the first argument that's the map name the user inputs. Allows the map name to not be case sensitive.}\n{=(l1):{lower:{userArgs(1)}}}\n{=(COMMENT):Returns the second argument (that will be the image link) if it has been provided, otherwise returns nothing.}\n{=(l2):{if({userArgs(2)}!={1}):http{userArgs(2)}}}\n \n{=(COMMENT):Checks if there is a user argument. Returns \"true\" or \"false\" conditionally. To reuse later.}\n{=(isArgs):{if({1}!=):true|false}}\n \n{=(COMMENT):Available map names the user is allowed to input. Only allows the combined words version of a map name. e.g. Two Towers should be submitted as TwoTowers\".}\n{=(map):dirt Blue Castle Ruins Feedlot TwoTowers Shellville Shipyard Moonbase FortFlip Road DeathPit Field DirtBase CastleArena SpaceArena DuelPyramid PalaceSiege Cluckgrounds MudGulch SpaceFactory SkyScratcher BioHazard JailBreak Bastion Temple Stage FourQuarters Blender Haunted Catacombs Overcooked Ramases Sparta Downfall Wreckage Trainyard Junction Rivals StaxArena Helix Jinx DirtToo KingsCourt Scales Enchanted Eggcrates Bridge Timetwist Growler Vert Wimble Rats}\n \n{=(COMMENT):Checks if the map name input is a valid map name. Returns \"true\" if so, otherwise \"false\".}\n{=(isValidMap):{contains({l1}):{lower:{map}}}}\n \n{=(COMMENT):Checks if the input link is a valid image link. Returns \"true\" or \"false\" accordingly.}\n{=(isImage):{if({index(true):{in(.jpg):{l2}} {in(.png):{l2}} {in(.gif):{l2}} {in(.webp):{l2}}}!=-1):true|false}}\n \n{=(len.l1):{index($&!):{args(1):http} $&!}}\n \n{=(isLenLT2):{if({len.l1}<=2):true|false}}\n \n{=(COMMENT):Full check to determine if the submission is successful in the end or not.}\n{=(fullCheck):{all({l2}!=|{isLenLT2}==true|{isValidMap}==true|{isImage}==true):true|false}}\n \n{=():}\n \n{=(COMMENT):---REACTION---}\n{=(COMMENT):Up and down custom reactions.}\n{=(react.up):<:t_upd:725594371130654720>}\n{=(react.down):<:t_down:725593075111559279>}\n{=(COMMENT):Conditionally reacts to the redirected embed when the submission is successful.}\n{{if({fullCheck}==true):react: {react.up} {react.down}}}\n \n{=(COMMENT):---REDIRECT---}\n{=(COMMENT):Conditionally redirects the tag's attached embed when the submission is successful.}\n{{if({fullCheck}==true):redirect:{redirChannel}}}\n \n{=(COMMENT):---OUTPUT MANAGEMENT (CURRENT CHANNEL)---}\n{=(COMMENT):We save emojis as variables we will eventually use in outputs.}\n{=(emoji.cmark):<:GreenTick:699124840879226922>}\n{=(emoji.cross):<:RedTick:699124870352732251>}\n{=(COMMENT):Capitalizes the first letter of each word in the map input.}\n{=(preformattedMap):{replace( z, Z):{replace( y, Y):{replace( x, X):{replace( w, W):{replace( v, V):{replace( u, U):{replace( t, T):{replace( s, S):{replace( r, R):{replace( q, Q):{replace( p, P):{replace( o, O):{replace( n, N):{replace( m, M):{replace( l, L):{replace( k, K):{replace( j, J):{replace( i, I):{replace( h, H):{replace( g, G):{replace( f, F):{replace( e, E):{replace( d, D):{replace( c, C):{replace( a, B):{replace( a, A): {lower:{args(1):http}}}}}}}}}}}}}}}}}}}}}}}}}}}}}\n{=(formattedMap):{preformattedMap(+3)}}\n \n{=(COMMENT):Image variable to call in the embed's image URL field. Breaks the tag's attached embed if the submission is not successful, otherwise returns the valid image link.}\n{=(image):{if({fullCheck}==true):{l2}|plaintext}}\n \n{=(COMMENT):Detects the Domain Name of the image link provided. It's just for extra security for staff who reviews before clicking on a link.}\n{=(DNS):{image(3):/}}\n \n{=(COMMENT):Embed Description. Contains the formatted name of the quest from the user input, as well as a hyperlink to the submission with the DNS used for the image hosting service for extra security.}\n{=(description):Submitted by: {user(mention)}\nMap found in: **{formattedMap}**\n[Submission ({DNS} Link)]({image})}\n \n{=(COMMENT):Messages to display in the CURRENT CHANNEL.}\n{=(COMMENT):Message when the request is complete and has been submitted.}\n{=(msg.sub):{emoji.cmark}Congratulations {user(mention)}! Your item you found on **{formattedMap}** has been **successfully**  submitted.\n \nIt will be reviewed by the mods and if found to be valid, you will see it updated shortly in <#1006352253768179722>}\n \n{=(COMMENT):Message when the request is incomplete and has not been submitted.}\n{=(msg.notsub):{emoji.cross}Oh No {user(mention)}, your submission for the item found on **{formattedMap}** role has **not** been submitted.\n \n Please check your formatting, make sure the image link you provided is valid and then ask for help in <#1006341634130194442>.}\n \n{=(COMMENT):Message to return conditionally.}\n{=(msg.current):{if({fullCheck}==true):{msg.sub}|{msg.notsub}}}\n \n{=(COMMENT):Saves green and red colors' hex code as variables, to then return the right color accordingly.}\n{=(color.green):#22F522}\n{=(color.red):#F11515}\n{=(color.current):{if({fullCheck}==true):{color.green}|{color.red}}}\n \n{=(COMMENT):Sends the success or error message in the current channel accordingly.}\n{c:embed {channel(id)} {color.current} |{msg.current}}\n{=(COMMENT):The override block below makes sure the current channel's embed will send even if the user normally doesn't have the permissions to use the embed command.}\n{override}\n \n{=(COMMENT):---EMBED FIELDS MANAGEMENT (REDIRECTED)---}\n{=(authorName):{user(name)}}\n{=(COMMENT):Returns the static version of the user avatar in case it's animated. You can remove the replace block if you don't mind. I just think it's overall distracting, but it's up to personal preference.}\n{=(authorAvatar):{replace(.gif,.png):{user(avatar)}}}\n{=(COMMENT):Embed Title.}\n{=(title):Found Item Submission #{uses}}\n \n{=(COMMENT):Embed Side Color.}\n{embed(color):#0060FA}",
  "embed": "{\"color\": 2290978, \"image\": {\"url\": \"{image}\"}, \"title\": \"{title}\", \"author\": {\"name\": \"{authorName}\", \"icon_url\": \"{authorAvatar}\"}, \"description\": \"{description}\"}",
  "last_fetched": "2026-10-20T18:55:50.090Z"
}