mmrequest

tag by wish#0420, changed by ᲼᲼᲼᲼᲼#7444

Privateunrated

Content

60 lines
{=():}
{=(COmmENT):REQUIRED TO CHANGE THESE
NOTE: I don't recommend changing anything else below the next comment unless you are experienced in TagScript}
{=(prefix):.}
{=(chan):906029309867741216}

{=(comment):Counting args}

{=(charactertocount):/}{=(comment):can't be a comma, parentheses or curly brackets}
{=(arglength):{index($%&):{args} $%&}}
{=(newarglength):{index($%&):{replace({charactertocount},. .):{args}} $%&}}
{=(charactercount):{m:trunc({newarglength}-{arglength})}}

{=(cOmment):Creating Errors/Fault}

{=(f):{m:trunc(3-{charactercount})}}

{=(error):No arguements were inputted Please read the format! {user(mention)}
use:``{prefix}mmrequest <trade with mention>/<your offer>/<their offer>/<note>``
Eg:``{prefix}mmrequest @duck/100 banknotes/1 pepe trophy/this is really important, come fast!``
**NOTE**:SLASHES AND EACH PART ARE REQUIRED}
{=(invalidCountFault):Oops! You are missing `{f}` `/` Please reread the format {user(mention)}
use:``{prefix}mmrequest <trade with mention>/<your offer>/<their offer>/<note>``
Eg:``{prefix}mmrequest @duck/100 banknotes/1 pepe trophy/this is really important, come fast!``
**NOTE**:SLASHES AND EACH PART ARE REQUIRED}
{=(COMMENT):Creating embed}

{=(target):{args(1):/}}
{=(item):{args(2):/}}
{=(hitem):{args(3):/}}
{=(note):{args(0):/}}


{=(embedTitle):{user(proper)} wants to request a middleman!}
{=(embedDesc):**From**:{user(mention)}
**Trade with**:{target}
**Requester offer**:{item}
**Their offer**:{hitem}
**Note**: {note}}
{=(embedJson):{ "timestamp":"{strf:%FT%T}.000Z",
  "title": "{embedTitle}",
  "description": "{embedDesc}",
  "color": 0,
  "footer": {
    "text": "Tag made by:wish#0420, changed by ᲼᲼᲼᲼᲼#7444"
  }
}}
{=(coMMent):Execution/Checks}

{=(output):c:cembed {channel(id)} {embedJson}}

{=(exec):{{{and({1}!=|{charactercount}==3):output}}}}
{exec}
{and({1}!=|{charactercount}!=0):{if({charactercount}==3):|{invalidCountFault}}}

{{and({1}==|{charactercount}==0):error}}
    {silent} {override} {delete}

{=(Requirements):}
{require(This can only be ran in <#{chan}>):{chan}}
Raw JSON
{
  "id": 1138635,
  "created_at": "2021-11-05T04:02:30.000Z",
  "tag_name": "mmrequest",
  "nsfw": false,
  "owner_id": "749194817120108585",
  "uses": 23,
  "description": "tag by wish#0420, changed by ᲼᲼᲼᲼᲼#7444",
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "905708073161752608",
  "sharer": "749194817120108585",
  "content": "{=():}\n{=(COmmENT):REQUIRED TO CHANGE THESE\nNOTE: I don't recommend changing anything else below the next comment unless you are experienced in TagScript}\n{=(prefix):.}\n{=(chan):906029309867741216}\n\n{=(comment):Counting args}\n\n{=(charactertocount):/}{=(comment):can't be a comma, parentheses or curly brackets}\n{=(arglength):{index($%&):{args} $%&}}\n{=(newarglength):{index($%&):{replace({charactertocount},. .):{args}} $%&}}\n{=(charactercount):{m:trunc({newarglength}-{arglength})}}\n\n{=(cOmment):Creating Errors/Fault}\n\n{=(f):{m:trunc(3-{charactercount})}}\n\n{=(error):No arguements were inputted Please read the format! {user(mention)}\nuse:``{prefix}mmrequest <trade with mention>/<your offer>/<their offer>/<note>``\nEg:``{prefix}mmrequest @duck/100 banknotes/1 pepe trophy/this is really important, come fast!``\n**NOTE**:SLASHES AND EACH PART ARE REQUIRED}\n{=(invalidCountFault):Oops! You are missing `{f}` `/` Please reread the format {user(mention)}\nuse:``{prefix}mmrequest <trade with mention>/<your offer>/<their offer>/<note>``\nEg:``{prefix}mmrequest @duck/100 banknotes/1 pepe trophy/this is really important, come fast!``\n**NOTE**:SLASHES AND EACH PART ARE REQUIRED}\n{=(COMMENT):Creating embed}\n\n{=(target):{args(1):/}}\n{=(item):{args(2):/}}\n{=(hitem):{args(3):/}}\n{=(note):{args(0):/}}\n\n\n{=(embedTitle):{user(proper)} wants to request a middleman!}\n{=(embedDesc):**From**:{user(mention)}\n**Trade with**:{target}\n**Requester offer**:{item}\n**Their offer**:{hitem}\n**Note**: {note}}\n{=(embedJson):{ \"timestamp\":\"{strf:%FT%T}.000Z\",\n  \"title\": \"{embedTitle}\",\n  \"description\": \"{embedDesc}\",\n  \"color\": 0,\n  \"footer\": {\n    \"text\": \"Tag made by:wish#0420, changed by ᲼᲼᲼᲼᲼#7444\"\n  }\n}}\n{=(coMMent):Execution/Checks}\n\n{=(output):c:cembed {channel(id)} {embedJson}}\n\n{=(exec):{{{and({1}!=|{charactercount}==3):output}}}}\n{exec}\n{and({1}!=|{charactercount}!=0):{if({charactercount}==3):|{invalidCountFault}}}\n\n{{and({1}==|{charactercount}==0):error}}\n    {silent} {override} {delete}\n\n{=(Requirements):}\n{require(This can only be ran in <#{chan}>):{chan}}",
  "embed": "{}",
  "last_fetched": "2026-10-20T17:57:39.843Z"
}