donate

Privateunrated

Content

61 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):727285490537070713}

{=(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!
use:``{prefix}donate <message>/<amount>/<time>/<winners>``
Eg:``{prefix}donate Hi this is {user}/50k each/10m/2``
**NOTE** : Slashes and each part are required}
{=(invalidCountFault):Oops! You are missing `{f}` `/` Please reread the format.
use:``{prefix}donate <message>/<amount>/<time>/<winners>``
Eg:``{prefix}donate Hi this is {user}/50k each/10m/2``
**NOTE** : Slashes and each part are required}
{=(COMMENT): Creating embed}

{=(message):{args(1):/}}
{=(amount):{args(2):/}}
{=(time):{args(3):/}}
{=(winners):{args(0):/}}


{=(embedTitle):{user(proper)} wants to sponsor a Giveaway! }
{=(embedDesc):  **Sponsor** : {user(mention)}
 **Message** : {message}
 **Amount** : {amount}
 **Time** : {time}
 **Winner(s)** : {winners}}
{=(embedJson):{ "timestamp":"{strf:%FT%T}.000Z",
  "title": "{embedTitle}",
  "description": "{embedDesc}",
     "color": 644095,
      "footer": {
    "text": "Tag made by ken"
   }
}}
{=(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}}
{c: feed announce donate hi}
Raw JSON
{
  "id": 492477,
  "created_at": "2020-12-19T12:48:29.000Z",
  "tag_name": "donate",
  "nsfw": false,
  "owner_id": "574927241088073728",
  "uses": 13,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "716666299962359860",
  "sharer": "574927241088073728",
  "content": "\n{=():}\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):727285490537070713}\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!\nuse:``{prefix}donate <message>/<amount>/<time>/<winners>``\nEg:``{prefix}donate Hi this is {user}/50k each/10m/2``\n**NOTE** : Slashes and each part are required}\n{=(invalidCountFault):Oops! You are missing `{f}` `/` Please reread the format.\nuse:``{prefix}donate <message>/<amount>/<time>/<winners>``\nEg:``{prefix}donate Hi this is {user}/50k each/10m/2``\n**NOTE** : Slashes and each part are required}\n{=(COMMENT): Creating embed}\n\n{=(message):{args(1):/}}\n{=(amount):{args(2):/}}\n{=(time):{args(3):/}}\n{=(winners):{args(0):/}}\n\n\n{=(embedTitle):{user(proper)} wants to sponsor a Giveaway! }\n{=(embedDesc):  **Sponsor** : {user(mention)}\n **Message** : {message}\n **Amount** : {amount}\n **Time** : {time}\n **Winner(s)** : {winners}}\n{=(embedJson):{ \"timestamp\":\"{strf:%FT%T}.000Z\",\n  \"title\": \"{embedTitle}\",\n  \"description\": \"{embedDesc}\",\n     \"color\": 644095,\n      \"footer\": {\n    \"text\": \"Tag made by ken\"\n   }\n}}\n{=(coMMent):Execution/Checks}\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}}\n{c: feed announce donate hi}",
  "embed": "{}",
  "last_fetched": "2026-10-20T23:32:51.497Z"
}