trickortreat

Privateunrated

Content

52 lines
{=(hexcolor):{user(color)}}

{=(message):{replace(A,10):{replace(B,11):{replace(C,12):{replace(D,13):{replace(E,14):{replace(F,15):{replace(, ):{upper:{replace(#,):{join():{hexcolor}}}}}}}}}}}}
{=(h1):{m:trunc({2}*1048576)}}
{=(h2):{m:trunc({3}*65536)}}
{=(h3):{m:trunc({4}*4096)}}
{=(h4):{m:trunc({5}*256)}}
{=(h5):{m:trunc({6}*16)}}
{=(h6):{m:trunc({7}*1)}}
{=(decimal):{m:trunc({h1}+{h2}+{h3}+{h4}+{h5}+{h6})}}

{=(originalbalance):{decimal}}

{=(successmessages):{rand:1|OMG! You went to the president aka {server(owner)}'s house and he gave you candies worth **⏣ {range:1000-2000}**~40|You visited the house of {server(random)} and they ABSOLUTELY loved your trick and your costume earning you ⏣ {range:100-250} worth of candies.~10|You went to {server(random)}'s house and they liked your costume. They liked it so much, that they offered to buy it. You sold it for a sum of ⏣ {range:500-750} worth of candies.~1|Woah. MrBeast asked you to compete in a challenge for 100,000 worth of candies! You didn't win but at least, you managed to snag ⏣ {range:1000-1500} worth of candies!~40|You went to {server(random)}'s house and gave you ⏣ {range:100-200} worth of candies! NICE~10|<:blushasf:901742951850459146> <:blushasf:901742951850459146>  You went to the house of your crush's [{server(random)}] house and she kissed you awww. You liked it so much that you were so happy that your candies got doubled somehow earning you ⏣ {originalbalance}.}}
{=(failmessages):{rand:5|Uh oh. Looks like you don't have a complete costume right now! Maybe wait for some time before going for trick or treating! You had to spent ⏣ {range:1-100} worth of candies to get your costume.~10|You went to {server(random)}'s house but found out that it was locked! You had to go back home sadly earning you ⏣ 0 worth of candies ~10|You tried visiting {server(random)}'s home but you don't know why, you weren't able to find it! You had to go back home costing you ⏣ {range:1-100} worth of candies for the bus home.~7|You went to {server(random)}'s house and found out that they were a KAREN! They criticized everything you did and gave you ⏣ 0 worth of candies..~3|hm so listen up. You were tiptoeing to {server(random)}'s house and you saw a ROBBER behind you. They robbed you of ⏣ {range:100-500} worth of candies. RIP. ~4|You tried visiting {server(owner)}'s house but you found out that there we lots of bodyguards outside his house who threw you out of the house and took all your candies which means you lost ⏣ {originalbalance} in total.~20|You visited {server(random)}'s house but they just didn't like your costume and gave you ⏣ 0 worth of candies candies}}
{=(amountgain1):{successmessages(2):⏣}}
{=(amountgain):{amountgain1(2)}}
{=(amountloss1):{failmessages(2):⏣}}
{=(amountloss):{amountloss1(2)}}
{=(finalmessage):{rand:35|{failmessages}~65|{successmessages}}}
{=(abc):{finalmessage(2):⏣}}
{=(amount):{abc(2)}}
{=(lossorgain):{if({amountgain}=={amount}):gain|loss}}

{=(newbalance):{m:trunc({originalbalance}{if({lossorgain}==gain):+|-}{amount})}}

{=(sign):{if({m:sgn({newbalance})}==-1):negative|positive}}
{=(dec):{if({sign}==negative):0|{newbalance}}}

{=(c1):{m:trunc({dec}/(16^5))}}
{=(r1):{m:{dec}%(16^5)}}
{=(c2):{m:trunc({r1}/(16^4))}}
{=(r2):{m:{r1}%(16^4)}}
{=(c3):{m:trunc({r2}/(16^3))}}
{=(r3):{m:{r2}%(16^3)}}
{=(c4):{m:trunc({r3}/(16^2))}}
{=(r4):{m:{r3}%(16^2)}}
{=(c5):{m:trunc({r4}/16)}}
{=(c6):{m:trunc({r4}%16)}}
{=(string):{c1} {c2} {c3} {c4} {c5} {c6}}
{=(final):{replace( ,):{replace(10,A):{replace(11,B):{replace(12,C):{replace(13,D):{replace(14,E):{replace(15,F):{string}}}}}}}}}
{=(newhex):#{final}}
{c:role color "{user} Trick or Treat" {newhex}}

{=(debug):__Debug__
Original Balance: {originalbalance}
Gain or Loss: {gainorloss}
Amount: {amount}
New Balance: {newbalance}
New hex: {newhex}}
{silent}
{override}

Embed

1 line
{"color": 14572057, "title": "Trick or Treat!", "author": {"name": "{user}", "icon_url": "{user(avatar)}"}, "footer": {"text": "{if({lossorgain}==loss):Sucks to suck|Spooky winner winner chicken dinner} • You can check your balance using !balance"}, "description": "{finalmessage}\n\nYou now have `{newbalance}` :candy: up from `{originalbalance}` :candy:"}
Raw JSON
{
  "id": 1118653,
  "created_at": "2021-10-22T10:42:03.000Z",
  "tag_name": "trickortreat",
  "nsfw": false,
  "owner_id": "823904633944539196",
  "uses": 110,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "831515159893770270",
  "sharer": "823904633944539196",
  "content": "{=(hexcolor):{user(color)}}\n\n{=(message):{replace(A,10):{replace(B,11):{replace(C,12):{replace(D,13):{replace(E,14):{replace(F,15):{replace(, ):{upper:{replace(#,):{join():{hexcolor}}}}}}}}}}}}\n{=(h1):{m:trunc({2}*1048576)}}\n{=(h2):{m:trunc({3}*65536)}}\n{=(h3):{m:trunc({4}*4096)}}\n{=(h4):{m:trunc({5}*256)}}\n{=(h5):{m:trunc({6}*16)}}\n{=(h6):{m:trunc({7}*1)}}\n{=(decimal):{m:trunc({h1}+{h2}+{h3}+{h4}+{h5}+{h6})}}\n\n{=(originalbalance):{decimal}}\n\n{=(successmessages):{rand:1|OMG! You went to the president aka {server(owner)}'s house and he gave you candies worth **⏣ {range:1000-2000}**~40|You visited the house of {server(random)} and they ABSOLUTELY loved your trick and your costume earning you ⏣ {range:100-250} worth of candies.~10|You went to {server(random)}'s house and they liked your costume. They liked it so much, that they offered to buy it. You sold it for a sum of ⏣ {range:500-750} worth of candies.~1|Woah. MrBeast asked you to compete in a challenge for 100,000 worth of candies! You didn't win but at least, you managed to snag ⏣ {range:1000-1500} worth of candies!~40|You went to {server(random)}'s house and gave you ⏣ {range:100-200} worth of candies! NICE~10|<:blushasf:901742951850459146> <:blushasf:901742951850459146>  You went to the house of your crush's [{server(random)}] house and she kissed you awww. You liked it so much that you were so happy that your candies got doubled somehow earning you ⏣ {originalbalance}.}}\n{=(failmessages):{rand:5|Uh oh. Looks like you don't have a complete costume right now! Maybe wait for some time before going for trick or treating! You had to spent ⏣ {range:1-100} worth of candies to get your costume.~10|You went to {server(random)}'s house but found out that it was locked! You had to go back home sadly earning you ⏣ 0 worth of candies ~10|You tried visiting {server(random)}'s home but you don't know why, you weren't able to find it! You had to go back home costing you ⏣ {range:1-100} worth of candies for the bus home.~7|You went to {server(random)}'s house and found out that they were a KAREN! They criticized everything you did and gave you ⏣ 0 worth of candies..~3|hm so listen up. You were tiptoeing to {server(random)}'s house and you saw a ROBBER behind you. They robbed you of ⏣ {range:100-500} worth of candies. RIP. ~4|You tried visiting {server(owner)}'s house but you found out that there we lots of bodyguards outside his house who threw you out of the house and took all your candies which means you lost ⏣ {originalbalance} in total.~20|You visited {server(random)}'s house but they just didn't like your costume and gave you ⏣ 0 worth of candies candies}}\n{=(amountgain1):{successmessages(2):⏣}}\n{=(amountgain):{amountgain1(2)}}\n{=(amountloss1):{failmessages(2):⏣}}\n{=(amountloss):{amountloss1(2)}}\n{=(finalmessage):{rand:35|{failmessages}~65|{successmessages}}}\n{=(abc):{finalmessage(2):⏣}}\n{=(amount):{abc(2)}}\n{=(lossorgain):{if({amountgain}=={amount}):gain|loss}}\n\n{=(newbalance):{m:trunc({originalbalance}{if({lossorgain}==gain):+|-}{amount})}}\n\n{=(sign):{if({m:sgn({newbalance})}==-1):negative|positive}}\n{=(dec):{if({sign}==negative):0|{newbalance}}}\n\n{=(c1):{m:trunc({dec}/(16^5))}}\n{=(r1):{m:{dec}%(16^5)}}\n{=(c2):{m:trunc({r1}/(16^4))}}\n{=(r2):{m:{r1}%(16^4)}}\n{=(c3):{m:trunc({r2}/(16^3))}}\n{=(r3):{m:{r2}%(16^3)}}\n{=(c4):{m:trunc({r3}/(16^2))}}\n{=(r4):{m:{r3}%(16^2)}}\n{=(c5):{m:trunc({r4}/16)}}\n{=(c6):{m:trunc({r4}%16)}}\n{=(string):{c1} {c2} {c3} {c4} {c5} {c6}}\n{=(final):{replace( ,):{replace(10,A):{replace(11,B):{replace(12,C):{replace(13,D):{replace(14,E):{replace(15,F):{string}}}}}}}}}\n{=(newhex):#{final}}\n{c:role color \"{user} Trick or Treat\" {newhex}}\n\n{=(debug):__Debug__\nOriginal Balance: {originalbalance}\nGain or Loss: {gainorloss}\nAmount: {amount}\nNew Balance: {newbalance}\nNew hex: {newhex}}\n{silent}\n{override}",
  "embed": "{\"color\": 14572057, \"title\": \"Trick or Treat!\", \"author\": {\"name\": \"{user}\", \"icon_url\": \"{user(avatar)}\"}, \"footer\": {\"text\": \"{if({lossorgain}==loss):Sucks to suck|Spooky winner winner chicken dinner} • You can check your balance using !balance\"}, \"description\": \"{finalmessage}\\n\\nYou now have `{newbalance}` :candy: up from `{originalbalance}` :candy:\"}",
  "last_fetched": "2026-10-20T17:52:27.243Z"
}