gift
Privateunrated
Content
94 lines{override}
{=(comment):Blacklist role, prevents tag from being used if user has the role and displays a blacklist message.}
{=(blrole):}
{=(comment):Cooldown role, prevents tag from being used if user has the role and displays a cooldown message.}
{=(cdrole):871775085319557160}
{=(COMMENT):List of roles that will bypass the cooldown, like admin, mods, etc, kept for 5 roles, you can add more if you need, just make sure to edit it in the part below which i used to whitelist them from cooldown. Also the {x} inside it are kept for a reason, if you are not putting any role IDs in it, then keep it as it is otherwise there's a blank in it and the bot will always return true when running the boolean later on, resulting it in not assigning the cooldown role to anyone. If you are putting a role ID then do remove the x from it}
{=(Role1):779120221398892595}
{=(Role2):x}
{=(Role3):x}
{=(Role4):x}
{=(Role5):x}
{=(COMMENT):List of roles that will have cooldown2 Also the {x} inside it are kept for a reason, if you are not putting any role IDs in it, then keep it as it is otherwise there's a blank in it and the bot will always return true when running the boolean later on, resulting it in not assigning the cooldown role to anyone. If you are putting a role ID then do remove the x from it}
{=(RoleA):x}
{=(RoleB):x}
{=(RoleC):x}
{=(RoleD):x}
{=(RoleE):x}
{=(comment):Sets cooldown duration for normal members}
{=(cdtime1):10m}
{=(comment):Sets cooldown duration for boosters/special members}
{=(cdtime2):2m}
{=(comment):Top: Sets the lowest number for the range
Bottom: Sets the highest number for the range}
{=(rrmin):1}
{=(rrmax):750}
{=(largs):{lower:{args}}}
{=(rxr):{#:1~1~1~1~1~1~1~1~1~1~1~1~1~1~1~1~1~1~1~1~1~1~1~1~1~1~1~1~1~1~1~1~2~2~2~2~2~2~2~2~2~2~2~2~2~2~2~2~2~2~2~2~2~2~2~2~2~2~2~2~2~2~2~2~3~3~3~3~3~3~3~3~3~3~3~3~3~3~3~3~3~3~3~3~3~3~3~3~3~3~3~3~3~3~3~3~4~4~4~4~4~4~4~4~4~4~4~4~4~4~4~4~4~4~4~4~4~4~4~4~4~4~4~4~4~4~4~4~5~5~5~5~5~5~5~5~5~5~5~5~5~5~5~5~5~5~5~5~5~5~5~5~5~5~5~5~5~5~5~5~6~6~6~6~6~6~6~6~6~6~6~6~6~6~6~6~7~7~7~7~7~7~7~7~7~7~7~7~7~7~7~7~8~8~8~8~8~8~8~8~8~8~8~8~8~8~8~8~9~9~9~9~9~99~9~9~9~9~9~9~9~9~9~10~10~10~10~10~10~10~10~10~10~10~10~10~10~10~10~11~11~11~11~11~11~11~11~12~12~12~12~12~12~12~12~13~13~13~13~13~13~13~13~14~14~14~14~14~14~14~14~15~15~15~15~15~15~15~15~16~16~16~16~17~17~17~17~18~18~18~18~19~19~20}}
{=(tier):{if({rxr}<=5):1|{if({rxr}<=10):2|{if({rxr}<=15):3|{if({rxr}<=18):4|{if({rxr}<=19):5|{if({rxr}<=20):6}}}}}}}
{=(rand1range):{range:{rrmin}-{rrmax}}}
{=(rand2range):{range:{rrmin}-{rrmax}}}
{=(rand3range):{range:{rrmin}-{rrmax}}}
{=(rand4range):{range:{rrmin}-{rrmax}}}
{=(rand5range):{range:{rrmin}-{rrmax}}}
{=(rand6range):{range:{rrmin}-{rrmax}}}
{=(rand7range):{range:{rrmin}-{rrmax}}}
{=(rand8range):{range:{rrmin}-{rrmax}}}
{=(rand9range):{range:{rrmin}-{rrmax}}}
{=(rand10range):{range:{rrmin}-{rrmax}}}
{=(rand11range):{range:{rrmin}-{rrmax}}}
{=(rand12range):{range:{rrmin}-{rrmax}}}
{=(rand13range):{range:{rrmin}-{rrmax}}}
{=(rand14range):{range:{rrmin}-{rrmax}}}
{=(rand15range):{range:{rrmin}-{rrmax}}}
{=(rand16range):{range:{rrmin}-{rrmax}}}
{=(rand17range):{range:{rrmin}-{rrmax}}}
{=(rand18range):{range:{rrmin}-{rrmax}}}
{=(rand19range):{range:{rrmin}-{rrmax}}}
{=(rand20range):{range:{rrmin}-{rrmax}}}
{=(title1):Help}
{=(title2):{user(name)}}
{=(des1):Syntax: `[p]gift`
**What is it?**
This command is a holiday theme gift command.
**How does it work?**
The command randomly selects a bag 1-20. The higher the bag number the better the prize. Bags 1-20 are split up in to 6 tiers.
Tier 1: Bags 1-5
Tier 2: Bags 6-10
Tier 3: Bags 11-15
Tier 4: Bags 16-18
Tier 5: Bag 19
Tier 6: Bag 20
Luck is determined by the tier number not the bag, You are most likely to get Tier 1 and are least likely to get Tier 6.}
{=(des2):You picked bag: `{rxr}`
Tier: `{tier}`
You won `{rand{rxr}range}`}
{=(outcome.Title):{if({largs}==help):{title1}|{title2}}}
{=(outcome.Des):{if({largs}==help):{des1}|{des2}}}
{=(COMMENT):Put the role ID for the role your using as for cooldown, also put the duration for cooldown, must be the same time format as you put for a temprole command, ex: 5d, 5m, 5h etc}
{=(COMMENT):The following parts contains the part that blacklist users, used a few control blocks to make sure the bot doesnt send anything when no arguments is produced and sends an error message instead, also doesnt add the cooldown role that time, other wise adds a cooldown role if users doesnt have any role whitelisted from above like Role1 and etc. Also if you want to have the tag invocation deleted, you can add a del block in the tag}
{=(urids):{user(roleids)}}
{=(BL1):{in({Role1}):{urids}}} {=(BL2):{in({Role2}):{urids}}} {=(BL3):{in({Role3}):{urids} {=(BL4):{in({Role4}):{urids}}} {=(BL5):{in({Role5}):{urids}}}}
{=(allCheck):{in(true):{BL1} {BL2} {BL3} {BL4} {BL5}}}
{=(WL1):{in({RoleA}):{urids}}} {=(WL2):{in({RoleB}):{urids}}} {=(WL3):{in({RoleC}):{urids} {=(WL4):{in({RoleD}):{urids}}} {=(WL5):{in({RoleE}):{urids}}}}
{=(allCheck2):{in(true):{WL1} {WL2} {WL3} {WL4} {WL5}}}
{=(num):{and({allCheck}==true|{allCheck2}==true):2|{if({allCheck}==true):1|{if({allCheck2}==true):2|1}}}}}}
{=():}
{=(blank):}
{=(force):{if({allCheck}==true):=(comment)|cmd}}
{=(add.role):{if({allCheck}==true):{blank}|{{force}:temprole {user(id)} {cdtime{num}} {cdrole}}}}
{=(uargs):{unicode:{args}}}
{{override}}
{=(jcom):=(comment):}
{=(jargs):{if({args}==):blacklist|{jcom}}}
{{jargs}(This tag has a cooldown of {cdtime{num}} except for whitelisted roles.):{cdrole}}
{silence}Embed
1 line{"color": 5083647, "title": "{outcome.Title}", "author": {"name": "π Gift π"}, "description": "{outcome.Des}"}Raw JSON
{
"id": 501436,
"created_at": "2020-12-25T23:33:38.000Z",
"tag_name": "gift",
"nsfw": false,
"owner_id": "443544051518668810",
"uses": 248,
"description": null,
"restricted": false,
"shared": false,
"deleted": false,
"safe": "unrated",
"hidden": false,
"guild_id": "779119145978560533",
"sharer": "443544051518668810",
"content": "{override}\n{=(comment):Blacklist role, prevents tag from being used if user has the role and displays a blacklist message.}\n{=(blrole):}\n{=(comment):Cooldown role, prevents tag from being used if user has the role and displays a cooldown message.}\n{=(cdrole):871775085319557160}\n{=(COMMENT):List of roles that will bypass the cooldown, like admin, mods, etc, kept for 5 roles, you can add more if you need, just make sure to edit it in the part below which i used to whitelist them from cooldown. Also the {x} inside it are kept for a reason, if you are not putting any role IDs in it, then keep it as it is otherwise there's a blank in it and the bot will always return true when running the boolean later on, resulting it in not assigning the cooldown role to anyone. If you are putting a role ID then do remove the x from it}\n{=(Role1):779120221398892595}\n{=(Role2):x}\n{=(Role3):x}\n{=(Role4):x}\n{=(Role5):x}\n{=(COMMENT):List of roles that will have cooldown2 Also the {x} inside it are kept for a reason, if you are not putting any role IDs in it, then keep it as it is otherwise there's a blank in it and the bot will always return true when running the boolean later on, resulting it in not assigning the cooldown role to anyone. If you are putting a role ID then do remove the x from it}\n{=(RoleA):x}\n{=(RoleB):x}\n{=(RoleC):x}\n{=(RoleD):x}\n{=(RoleE):x}\n{=(comment):Sets cooldown duration for normal members}\n{=(cdtime1):10m}\n{=(comment):Sets cooldown duration for boosters/special members}\n{=(cdtime2):2m}\n\n\n{=(comment):Top: Sets the lowest number for the range\nBottom: Sets the highest number for the range}\n{=(rrmin):1}\n{=(rrmax):750}\n{=(largs):{lower:{args}}}\n{=(rxr):{#:1~1~1~1~1~1~1~1~1~1~1~1~1~1~1~1~1~1~1~1~1~1~1~1~1~1~1~1~1~1~1~1~2~2~2~2~2~2~2~2~2~2~2~2~2~2~2~2~2~2~2~2~2~2~2~2~2~2~2~2~2~2~2~2~3~3~3~3~3~3~3~3~3~3~3~3~3~3~3~3~3~3~3~3~3~3~3~3~3~3~3~3~3~3~3~3~4~4~4~4~4~4~4~4~4~4~4~4~4~4~4~4~4~4~4~4~4~4~4~4~4~4~4~4~4~4~4~4~5~5~5~5~5~5~5~5~5~5~5~5~5~5~5~5~5~5~5~5~5~5~5~5~5~5~5~5~5~5~5~5~6~6~6~6~6~6~6~6~6~6~6~6~6~6~6~6~7~7~7~7~7~7~7~7~7~7~7~7~7~7~7~7~8~8~8~8~8~8~8~8~8~8~8~8~8~8~8~8~9~9~9~9~9~99~9~9~9~9~9~9~9~9~9~10~10~10~10~10~10~10~10~10~10~10~10~10~10~10~10~11~11~11~11~11~11~11~11~12~12~12~12~12~12~12~12~13~13~13~13~13~13~13~13~14~14~14~14~14~14~14~14~15~15~15~15~15~15~15~15~16~16~16~16~17~17~17~17~18~18~18~18~19~19~20}}\n{=(tier):{if({rxr}<=5):1|{if({rxr}<=10):2|{if({rxr}<=15):3|{if({rxr}<=18):4|{if({rxr}<=19):5|{if({rxr}<=20):6}}}}}}}\n{=(rand1range):{range:{rrmin}-{rrmax}}}\n{=(rand2range):{range:{rrmin}-{rrmax}}}\n{=(rand3range):{range:{rrmin}-{rrmax}}}\n{=(rand4range):{range:{rrmin}-{rrmax}}}\n{=(rand5range):{range:{rrmin}-{rrmax}}}\n{=(rand6range):{range:{rrmin}-{rrmax}}}\n{=(rand7range):{range:{rrmin}-{rrmax}}}\n{=(rand8range):{range:{rrmin}-{rrmax}}}\n{=(rand9range):{range:{rrmin}-{rrmax}}}\n{=(rand10range):{range:{rrmin}-{rrmax}}}\n{=(rand11range):{range:{rrmin}-{rrmax}}}\n{=(rand12range):{range:{rrmin}-{rrmax}}}\n{=(rand13range):{range:{rrmin}-{rrmax}}}\n{=(rand14range):{range:{rrmin}-{rrmax}}}\n{=(rand15range):{range:{rrmin}-{rrmax}}}\n{=(rand16range):{range:{rrmin}-{rrmax}}}\n{=(rand17range):{range:{rrmin}-{rrmax}}}\n{=(rand18range):{range:{rrmin}-{rrmax}}}\n{=(rand19range):{range:{rrmin}-{rrmax}}}\n{=(rand20range):{range:{rrmin}-{rrmax}}}\n{=(title1):Help}\n{=(title2):{user(name)}}\n{=(des1):Syntax: `[p]gift`\n\n**What is it?**\nThis command is a holiday theme gift command.\n\n**How does it work?**\nThe command randomly selects a bag 1-20. The higher the bag number the better the prize. Bags 1-20 are split up in to 6 tiers.\nTier 1: Bags 1-5\nTier 2: Bags 6-10\nTier 3: Bags 11-15\nTier 4: Bags 16-18\nTier 5: Bag 19\nTier 6: Bag 20\nLuck is determined by the tier number not the bag, You are most likely to get Tier 1 and are least likely to get Tier 6.}\n{=(des2):You picked bag: `{rxr}`\n\nTier: `{tier}`\n\nYou won `{rand{rxr}range}`}\n{=(outcome.Title):{if({largs}==help):{title1}|{title2}}}\n{=(outcome.Des):{if({largs}==help):{des1}|{des2}}}\n\n{=(COMMENT):Put the role ID for the role your using as for cooldown, also put the duration for cooldown, must be the same time format as you put for a temprole command, ex: 5d, 5m, 5h etc}\n\n{=(COMMENT):The following parts contains the part that blacklist users, used a few control blocks to make sure the bot doesnt send anything when no arguments is produced and sends an error message instead, also doesnt add the cooldown role that time, other wise adds a cooldown role if users doesnt have any role whitelisted from above like Role1 and etc. Also if you want to have the tag invocation deleted, you can add a del block in the tag}\n{=(urids):{user(roleids)}}\n{=(BL1):{in({Role1}):{urids}}} {=(BL2):{in({Role2}):{urids}}} {=(BL3):{in({Role3}):{urids} {=(BL4):{in({Role4}):{urids}}} {=(BL5):{in({Role5}):{urids}}}}\n{=(allCheck):{in(true):{BL1} {BL2} {BL3} {BL4} {BL5}}}\n{=(WL1):{in({RoleA}):{urids}}} {=(WL2):{in({RoleB}):{urids}}} {=(WL3):{in({RoleC}):{urids} {=(WL4):{in({RoleD}):{urids}}} {=(WL5):{in({RoleE}):{urids}}}}\n{=(allCheck2):{in(true):{WL1} {WL2} {WL3} {WL4} {WL5}}}\n{=(num):{and({allCheck}==true|{allCheck2}==true):2|{if({allCheck}==true):1|{if({allCheck2}==true):2|1}}}}}}\n\n{=():} \n{=(blank):}\n{=(force):{if({allCheck}==true):=(comment)|cmd}}\n{=(add.role):{if({allCheck}==true):{blank}|{{force}:temprole {user(id)} {cdtime{num}} {cdrole}}}}\n{=(uargs):{unicode:{args}}}\n{{override}}\n{=(jcom):=(comment):}\n{=(jargs):{if({args}==):blacklist|{jcom}}}\n{{jargs}(This tag has a cooldown of {cdtime{num}} except for whitelisted roles.):{cdrole}}\n{silence}",
"embed": "{\"color\": 5083647, \"title\": \"{outcome.Title}\", \"author\": {\"name\": \"π Gift π\"}, \"description\": \"{outcome.Des}\"}",
"last_fetched": "2026-10-20T23:36:37.146Z"
}