giveaway

Privateunrated

Content

40 lines
{delete}{override}{=():}
{require(Only people with giveaways host or mod role can use this!):676086769409851412,676122331428683823,717759090994053192}
{=(prefix):.}
{=(tagname):giveaway}
{=(separator):/}
{=(requiredargs):5}

{=(comment):footer time}
{=(coffset):{m:trunc(2*3600)}}
{=(time):{strf({m:trunc({strf:%s}+{coffset})}):%d. %B %Y %-I:%M%p}}

{=(comment):random embed color}
{=(i):#:A,B,C,D,E,F,0,1,2,3,4,5,6,7,8,9}
{embed(color):#{{i}}{{i}}{{i}}{{i}}{{i}}{{i}}}


{=(arglen):{index($&@):{args} $&@}}
{=(newarglen):{index($&@):{replace({separator},. .):{args}} $&@}}
{=(sepcount):{m:trunc({newarglen}-{arglen})}}

{=(title):{target(proper)} wants to host a giveaway!}

{=(parse):{replace($,m):{replace(m, $inute):{replace(w, week):{replace(mo, $onth):{replace(h, hour):{replace(s, second):{replace(d, day):{replace(y, year):{args(3):{separator}}}}}}}}}}}
{=(condX):{if({parse(1)}>1):s}}

{=(num):{any({1}==|{sepcount}<{m:trunc({requiredargs}-1)}):1|0}}

{=(msg0):🎲 **Amount:** {if({args(2):{separator}}==):No Amount Provided|{args(2):{separator}}}
 ⏱️ **Time:** {if({args(3):{separator}}==):No Time Provided|{parse}{condX}}
🎟️ **Winners:** {if({args(4):{separator}}==):No Amount of winners Provided|{replace(w, winner(s)):{args(4):{separator}}}}
 πŸ“œ **Requirements:** {if({args(5):{separator}}==):No Requirements Provided|{args(5):{separator}}}
}

{=(msg1):**You did not provide enough information.** 

Your input should include 4 `{separator}`. To keep a section blank just don't put in any text in that section. 

Sections: `Item Name{separator}Amount{separator}Time{separator}Winners{separator}Requirements`
Usage Example: `{prefix}{tagname} Nitro Classic{separator}1{separator}1h{separator}1w{separator}`
To not provide info: `{prefix}{tagname} Nitro Classic{separator}1{separator}{separator}1w{separator}`}

Embed

1 line
{"color": 12124096, "title": "{if({args(1):{separator}}==):No item provided!|{args(1):{separator}}}", "author": {"name": "{if({num}==0):{title}}", "icon_url": "{user(avatar)}"}, "footer": {"text": "{server} β€’ {time}", "icon_url": "{server(icon)}"}, "description": "{msg{num}}"}
Raw JSON
{
  "id": 327956,
  "created_at": "2020-09-11T17:55:57.000Z",
  "tag_name": "giveaway",
  "nsfw": false,
  "owner_id": "246276708242554890",
  "uses": 285,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "676086723234627595",
  "sharer": "246276708242554890",
  "content": "{delete}{override}{=():}\n{require(Only people with giveaways host or mod role can use this!):676086769409851412,676122331428683823,717759090994053192}\n{=(prefix):.}\n{=(tagname):giveaway}\n{=(separator):/}\n{=(requiredargs):5}\n\n{=(comment):footer time}\n{=(coffset):{m:trunc(2*3600)}}\n{=(time):{strf({m:trunc({strf:%s}+{coffset})}):%d. %B %Y %-I:%M%p}}\n\n{=(comment):random embed color}\n{=(i):#:A,B,C,D,E,F,0,1,2,3,4,5,6,7,8,9}\n{embed(color):#{{i}}{{i}}{{i}}{{i}}{{i}}{{i}}}\n\n\n{=(arglen):{index($&@):{args} $&@}}\n{=(newarglen):{index($&@):{replace({separator},. .):{args}} $&@}}\n{=(sepcount):{m:trunc({newarglen}-{arglen})}}\n\n{=(title):{target(proper)} wants to host a giveaway!}\n\n{=(parse):{replace($,m):{replace(m, $inute):{replace(w, week):{replace(mo, $onth):{replace(h, hour):{replace(s, second):{replace(d, day):{replace(y, year):{args(3):{separator}}}}}}}}}}}\n{=(condX):{if({parse(1)}>1):s}}\n\n{=(num):{any({1}==|{sepcount}<{m:trunc({requiredargs}-1)}):1|0}}\n\n{=(msg0):🎲 **Amount:** {if({args(2):{separator}}==):No Amount Provided|{args(2):{separator}}}\n ⏱️ **Time:** {if({args(3):{separator}}==):No Time Provided|{parse}{condX}}\n🎟️ **Winners:** {if({args(4):{separator}}==):No Amount of winners Provided|{replace(w, winner(s)):{args(4):{separator}}}}\n πŸ“œ **Requirements:** {if({args(5):{separator}}==):No Requirements Provided|{args(5):{separator}}}\n}\n\n{=(msg1):**You did not provide enough information.** \n\nYour input should include 4 `{separator}`. To keep a section blank just don't put in any text in that section. \n\nSections: `Item Name{separator}Amount{separator}Time{separator}Winners{separator}Requirements`\nUsage Example: `{prefix}{tagname} Nitro Classic{separator}1{separator}1h{separator}1w{separator}`\nTo not provide info: `{prefix}{tagname} Nitro Classic{separator}1{separator}{separator}1w{separator}`}",
  "embed": "{\"color\": 12124096, \"title\": \"{if({args(1):{separator}}==):No item provided!|{args(1):{separator}}}\", \"author\": {\"name\": \"{if({num}==0):{title}}\", \"icon_url\": \"{user(avatar)}\"}, \"footer\": {\"text\": \"{server} β€’ {time}\", \"icon_url\": \"{server(icon)}\"}, \"description\": \"{msg{num}}\"}",
  "last_fetched": "2026-10-20T22:28:49.325Z"
}