donate

Privateunrated

Content

63 lines
{=(Requirements):}
{require(This can only be ran in <#805338045897375774>):<#805338045897375774>}
{=():}
{=(COmmENT):
NOTE: I don't recommend changing anything else below the next comment unless you are experienced in TagScript}
{=(prefix):-}
{=(chan):803160410966065153}
{=(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}donate <message>/<amount>/<time>/<winners>``
Eg:``{prefix}donate Hi this is Hanash/50k each/10m/2``
**NOTE**:SLASHES AND EACH PART ARE REQUIRED}
{=(invalidCountFault):Oops! You are missing `{f}` `/` Please reread the format {user(mention)}
use:``{prefix}donate <message>/<amount>/<time>/<winners>``
Eg:``{prefix}donate Hi this is Hanash/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)}Thanks for the donation!}
{=(embedDesc):**Sponsor**:{user(mention)}
<a:ArrowRightGlow:813104104322105384> **Message**:{message}
<a:ArrowRightGlow:813104104322105384> **Amount**:{amount}
<a:ArrowRightGlow:813104104322105384> **Time**:{time}
<a:ArrowRightGlow:813104104322105384> **Winner(s)**: {winners}}
{=(embedJson):{ "timestamp":"{strf:%FT%T}.000Z",
  "title": "{embedTitle}",
  "description": "{embedDesc}",
  "color": 0,
  "footer": {
    "text": "wait for the giveaway manger to respond"
  }
}}
{=(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 <#805338045897375774>):<#805338045897375774>}
{=(msg):<@&803567772637462549>:{mention} wants to donate}

{{and({1}==|{charactercount}==0):error|msg}}
Raw JSON
{
  "id": 593616,
  "created_at": "2021-02-09T05:12:23.000Z",
  "tag_name": "donate",
  "nsfw": false,
  "owner_id": "633332530392727572",
  "uses": 136,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "802801735608958976",
  "sharer": "633332530392727572",
  "content": "{=(Requirements):}\n{require(This can only be ran in <#805338045897375774>):<#805338045897375774>}\n{=():}\n{=(COmmENT):\nNOTE: I don't recommend changing anything else below the next comment unless you are experienced in TagScript}\n{=(prefix):-}\n{=(chan):803160410966065153}\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}donate <message>/<amount>/<time>/<winners>``\nEg:``{prefix}donate Hi this is Hanash/50k each/10m/2``\n**NOTE**:SLASHES AND EACH PART ARE REQUIRED}\n{=(invalidCountFault):Oops! You are missing `{f}` `/` Please reread the format {user(mention)}\nuse:``{prefix}donate <message>/<amount>/<time>/<winners>``\nEg:``{prefix}donate Hi this is Hanash/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{=(embedTitle){user(proper)}Thanks for the donation!}\n{=(embedDesc):**Sponsor**:{user(mention)}\n<a:ArrowRightGlow:813104104322105384> **Message**:{message}\n<a:ArrowRightGlow:813104104322105384> **Amount**:{amount}\n<a:ArrowRightGlow:813104104322105384> **Time**:{time}\n<a:ArrowRightGlow:813104104322105384> **Winner(s)**: {winners}}\n{=(embedJson):{ \"timestamp\":\"{strf:%FT%T}.000Z\",\n  \"title\": \"{embedTitle}\",\n  \"description\": \"{embedDesc}\",\n  \"color\": 0,\n  \"footer\": {\n    \"text\": \"wait for the giveaway manger to respond\"\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\n{=(Requirements):}\n{require(This can only be ran in <#805338045897375774>):<#805338045897375774>}\n{=(msg):<@&803567772637462549>:{mention} wants to donate}\n\n{{and({1}==|{charactercount}==0):error|msg}}",
  "embed": "{}",
  "last_fetched": "2026-10-21T00:11:43.211Z"
}