negotiate
Private
Content
264 lines{=(COMMENT):2023-12-25 rev 09: updating cooldown, fixing potential error}
{=(COMMENT):General configuration}
{=(COMMENT):Main prefix and name of the tag, to be used in the command's instructions if you'd like to display them.}
{=(prefix):.}
{=(tagName):negotiate}
{=(HitImage):{#:2|https://imgur.com/oXzHxIO.gif~1|https://imgur.com/Cn3W3EN.gif~2|https://imgur.com/H5Dv1Nz.gif~1|https://imgur.com/4yJaFIX.gif~2|https://imgur.com/zVZMzig.gif~2|https://imgur.com/8bnuG5C.gif~1|https://imgur.com/TEO7r4W.gif~3|https://imgur.com/sw0fmHA.gif}}
{=(COMMENT):Roles IDs}
{=(COMMENT):921104937516159047 is the Negotiate Cool down role iD}
{=(cdRole):921104937516159047}
{=(COMMENT):920543040966393906 is the Young Beastars role, reward for Leaderboard}
{=(YBRole):920543040966393906}
{=(COMMENT):633065421829963776 is the booster role, aka All-Organism Council}
{=(BRole):633065421829963776}
{=(COMMENT):737532034930442342 is the T-Rex role, aka Reward Role}
{=(TRexRole):737532034930442342}
{=(COMMENT):898435578780074056 is the [No Events] Role, which requested not to participate in any server events.}
{=(NERole):898435578780074056}
{=(COMMENT):651172902871367712 is freshman role, protection given to prevent action on new members}
{=(FRole):651172902871367712}
{=(COMMENT):689696613597315079 is the dead role, Joke Mute Role}
{=(DRole):689696613597315079}
{=(COMMENT):872586027859079188 is ToughSkin, the immunity role so the target doesn't get attacked too often.}
{=(TSRole):872586027859079188}
{=(COMMENT):913619173517705286 is the BeastFlu role that adds the symbol, formerly called as InfectedRole }
{=(BeastFluRole):913619173517705286}
{=(COMMENT):632848133465964554 is the Mod role, aka Police}
{=(PRole):632848133465964554}
{=(COMMENT):is 691787391244959754 is the Hybridgumi Role}
{=(HRole):691787391244959754}
{=(COMMENT):is 824746693286297631 is the Clinic Assistant Role}
{=(CARole):824746693286297631}
{=(COMMENT):1171271428281212948 is AciveRole, used to indicate if someone is active.}
{=(AciveRole):1171271428281212948}
{=(COMMENT):Checks if the user has any of the required roles}
{=(COMMENT):Checks if the user is Young Beastar. the main reward role}
{=(isYB):{contains({YBRole}):{user(roleids)}}}
{=(COMMENT):Checks if Checks for any staff roles. Clinic and Hybridgumi are also staff roles. }
{=(COMMENT):Checks if the user is Police, aka Mod}
{=(isPolice):{contains({PRole}):{user(roleids)}}}
{=(COMMENT):Checks if the user is Hybridgumi .}
{=(isHybridgumi):{contains({HRole}):{user(roleids)}}}
{=(COMMENT):Checks if the user Clinic Staff.}
{=(isClinic):{contains({CARole}):{user(roleids)}}}
{=(COMMENT):Checks has any of the above roles}
{=(HasRole):{any({isYB}==true|{isPolice}==true|{isHybridgumi}==true|{isClinic}==true):true|false}}
{=(COMMENT):Conditional checks}
{=(COMMENT):Checks if the user has special command roles}
{=(COMMENT):Checks if the user is T-Rex.}
{=(isTRex):{contains({TRexRole}):{user(roleids)}}}
{=(COMMENT):Checks if the user Booster.}
{=(isBooster):{contains({BRole}):{user(roleids)}}}
{=(COMMENT):Checks if the user AciveRole.}
{=(isActive):{contains({AciveRole}):{user(roleids)}}}
{=(CDTime):25h}
{=(COMMENT):Specialclass check to reduce timer. time in minutes}
{=(CDActive):{if({isActive}==true):1|0}}
{=(CDYB):{if({isYB}==true):1|0}}
{=(CDTRex):{if({isTRex}==true):6|0}}
{=(CDBooster):{if({isBooster}==true):6|0}}
{=(CDHours):{replace(h,*1):{CDTime}}}
{=(CDTime):{m:trunc({CDHours}-{CDActive}-{CDYB}-{CDTRex}-{CDBooster})}}
{=(CDTime):{CDTime}h}
{=(COMMENT):Formats the cooldown properly for outputs. Example: "15m" becomes "15 minutes".}
{=(cdFormat):{replace(h, hours):{CDTime}}}
{=(COMMENT):following is first set of checks of command can be used.}
{=(COMMENT):Checks if a target has been mentioned. If isUserTarget is true, no target was mentioned.}
{=(isUserTarget):{if({user(id)}=={target(id)}):true|false}}
{=(COMMENT):Checks if the user is on cooldown.}
{=(isCooldown):{contains({cdRole}):{user(roleids)}}}
{=(COMMENT):Checks if the user is currently has no event role.}
{=(isUserNERole):{contains({NERole}):{user(roleids)}}}
{=(COMMENT):Checks if the mentioned target has no events role, thus does not want to participate in any events}
{=(isTargetNERole):{contains({NERole}):{target(roleids)}}}
{=(COMMENT):Checks if the mentioned target has Freshman Role, Protection for new members}
{=(isTargetFreshman):{contains({FRole}):{target(roleids)}}}
{=(COMMENT):Checks if the user can use the Negotiate command by meeting the proper conditions.}
{=(canNeg):{all({isUserTarget}==false|{isCooldown}==false|{isUserNERole}==false|{isTargetNERole}==false|{isTargetFreshman}==false|{HasRole}==true):true|false}}
{=(COMMENT):conditional checks to see command works. If overlap, set to null. Two set of check.}
{=(COMMENT):Checks in user roles}
{=(COMMENT):Checks if the mentioned target has ToughSkin Role, immunity role from being killed too frequently}
{=(isToughSkin):{contains({TSRole}):{user(roleids)}}}
{=(COMMENT):Checks if the user is currently infected with BeastFlu.}
{=(isIWBF):{contains({BeastFluRole}):{user(roleids)}}}
{=(COMMENT):Checks in target roles}
{=(COMMENT):Checks if the mentioned target has ToughSkin Role, immunity role from being killed too frequently}
{=(isTargetToughSkin):{contains({TSRole}):{target(roleids)}}}
{=(COMMENT):Checks if the user is currently infected with BeastFlu .}
{=(isTargetIWBF):{contains({BeastFluRole}):{target(roleids)}}}
{=(COMMENT):Checks if the target is T-Rex. Note same as previously section since trex is already checked for cool down}
{=(isTargetTRex):{contains({TRexRole}):{target(roleids)}}}
{=(COMMENT):Time for Dead when hit Roulette.}
{=(RDTime):{#:20|1m~15|10m~10|30m~1|60m}}
{=(COMMENT):Random Duration when given t-rex}
{=(UTRexTime):{#:2|12h~3|18h~6|24h~3|36h~2|48h~1|72h}}
{=(TTRexTime):{#:2|12h~3|18h~6|24h~3|36h~2|48h~1|72h}}
{=(COMMENT):Command setup}
{=(COMMENT):List of Potential commands}
{=(LoseOut):echo true Nothing}
{=(COMMENT):user specific}
{=(UDeath):temprole c {user(id)} {RDTime} +{DRole}}
{=(UTRex):temprole c {user(id)} {UTRexTime} +{TRexRole}}
{=(UTS):temprole c {user(id)} 1h +{TSRole}}
{=(UBF):temprole c {user(id)} 20m +{BeastFluRole}}
{=(COMMENT):targrt specific}
{=(TDeath):temprole c {target(id)} 1m +{DRole}}
{=(TTRex):temprole c {target(id)} {TTRexTime} +{TRexRole}}
{=(TTS):temprole c {target(id)} 1h +{TSRole}}
{=(TBF):temprole c {target(id)} 20m +{BeastFluRole}}
{=(COMMENT):Set command to Null if already have role, user end}
{=(UTRex):{{if({isTRex}==true):LoseOut|UTRex}}}
{=(UTS):{{if({isToughSkin}==true):LoseOut|UTS}}}
{=(UBF):{{if({isIWBF}==true):LoseOut|UBF}}}
{=(COMMENT):No need to checkk CMDCD on user}
{=(COMMENT):Set command to Null if already have role, target end}
{=(TTRex):{{if({isTargetTRex}==true):LoseOut|TTRex}}}
{=(TTS):{{if({isTargetToughSkin}==true):LoseOut|TTS}}}
{=(TBF):{{if({isTargetIWBF}==true):LoseOut|TBF}}}
{=(COMMENT):Random the possible commands}
{=(COMMENT):User Random Actions}
{=(URA):{{#:2|LoseOut~2|UDeath~1|UTRex~3|UTS~3|UBF~2}}}
{=(COMMENT):Target Random Actions}
{=(TRA):{{#:2|LoseOut~2|TDeath~4|TTRex~3|TTS~3|TBF~2}}}
{=(COMMENT):Add Cooldown on user}
{=(CDAdd):temprole c {user(id)} {CDTime} +{cdRole}}
{=(CDaddCheck):{{#:5|addCD~1|UnoCD}}}
{=(COMMENT):Special condition to not add CD. If random chance for no CD, CD not applied}
{=(ApplyCD):{all({canNeg}==true|{CDaddCheck}!={UnoCD}):true|false}}
{=(COMMENT):Command execution}
{=():}
{=(COMMENT):Activate the chosen random command}
{{if({canNeg}==true):c:{URA}}}
{{if({canNeg}==true):c:{TRA}}}
{=(COMMENT):Sets the cooldown role on the user of the tag.}
{{if({ApplyCD}==true):c:{CDAdd}}}
{=(COMMENT):Error messages configuration.}
{=(msg.CommandFailed):⚠️ Unable to use to command due to not meeting conditions.}
{=(msg.noMention):⚠️ You need to mention someone to Negotiate with, {user(mention)}!}
{=(msg.cd):⚠️ `{prefix}{tagName}` ability on Cool Down for __`{cdFormat}`__, try again later, {user(mention)}!}
{=(msg.UserNE):⚠️ {user(mention)}, you cannot use this command due to <@&{NERole}> :octagonal_sign: blocking the use of optional commands!}
{=(msg.TargetNE):⚠️ Users with <@&{NERole}> :octagonal_sign: have opted out of optional commands.
Please select a different target, {user(mention)}!}
{=(msg.TargetFresh):⚠️ <@&{FRole}> are immune to optional commands since they are new members.
Please select a different target, {user(mention)}!}
{=(msg.NoRequiredRoles):⚠️ <@&{YBRole}> only. Obtained by taking 1st place non staff in the Monthly Leaderboards, posted in <#632840076132614161>.}
{=(COMMENT):Setting up time Statement, used for the discord time messages}
{=(COMMENT):Time for CD duration. does not know how to use the variable time {cooldown} in math, so have to do conversion directly}
{=(COMMENT):CD Time, used formula since varible}
{=(CDSeconds):{replace(s,*1):{replace(m,*60):{replace(h,*3600):{replace(d,*86400):{CDTime}}}}}}
{=(timeCD):{m:trunc({unix}+{CDSeconds})}}
{=(COMMENT):Roulette Death Time, used formula since varible}
{=(UDeathSeconds):{replace(m,*60):{RDTime}}}
{=(timeUDeath):{m:trunc({unix}+{UDeathSeconds})}}
{=(timeTDeath):{m:trunc({unix}+60)}}
{=(COMMENT):T-rex Time, used formula since varible}
{=(UTRexSeconds):{replace(h,*3600):{UTRexTime}}}
{=(timeUTRex):{m:trunc({unix}+{UTRexSeconds})}}
{=(TTRexSeconds):{replace(h,*3600):{TTRexTime}}}
{=(timeTTRex):{m:trunc({unix}+{TTRexSeconds})}}
{=(COMMENT):Time for TS Duration 1h}
{=(timeTS):{m:round({unix}+3600)}}
{=(COMMENT):Time for beastflu Duration 20}
{=(timeBF&F):{m:round({unix}+1200)}}
{=(COMMENT):Setting Output messages}
{=(msg.Start):🤝 {mention} has started negotiations with {target(mention)}!
<:BloodMoon:656365681062707200> Results:}
{=(COMMENT):Output messages for the user side}
{=(msg.ULoseOut):<:Legoshi_Cry:637780894769217575> {mention} got the bad end of the negotiations and got **Nothing**.}
{=(msg.UDeath):<:Legoshi_Doomed:714925382322749500> Negotiations failed and {mention} was killed by {target(mention)}!
🪦 {mention} is now <@&{DRole}> for __`{RDTime}`__.
⏰ Local time: <t:{timeUDeath}:f> aka <t:{timeUDeath}:R>.}
{=(msg.UTRex):<:TRex_Icon:894637849419341885> Negotiations is a success as {mention} obtained the formula to evolve into <@&{TRexRole}> for __`{UTRexTime}`__.
⏰ Local time: <t:{timeUTRex}:f> aka <t:{timeUTRex}:R>.}
{=(msg.UTS):🛡️ {mention} successfully negotiated for protection spell, gaining <@&{TSRole}> for __`1 hour`__.
⏰ Local time: <t:{timeTS}:f> aka <t:{timeTS}:R>.}
{=(msg.UBF):☣️ {mention} was tricked by {target(mention)} and became <@&{BeastFluRole}> for __`20 minutes`__.
⏰ Local time: <t:{timeBF&F}:f> aka <t:{timeBF&F}:R>.}
{=(msg.User):{if({URA}=={LoseOut}):{msg.ULoseOut}|{if({URA}=={UDeath}):{msg.UDeath}|{if({URA}=={UTRex}):{msg.UTRex}|{if({URA}=={UTS}):{msg.UTS}|{if({URA}=={UBF}):{msg.UBF}}}}}}}
{=(COMMENT):Output messages for the target side}
{=(msg.TLoseOut):<:Haru_Cry:701151133342630008> {target(mention)} got the bad end of the negotiations and got **Nothing**.}
{=(msg.TDeath):<:Melon_Evil:674444605449830410> Negotiations failed and {target(mention)} was killed by {mention}!
🪦 {target(mention)} is now <@&{DRole}> for __`1 minute`__.
⏰ Local time: <t:{timeTDeath}:f> aka <t:{timeTDeath}:R>.}
{=(msg.TTRex):<:TRex_Icon:894637849419341885> Negotiations is a success as {target(mention)} obtained the formula to evolve into <@&{TRexRole}> for __`{UTRexTime}`__.
⏰ Local time: <t:{timeTTRex}:f> aka <t:{timeTTRex}:R>.}
{=(msg.TTS):🛡️ {target(mention)} successfully negotiated for protection spell, gaining <@&{TSRole}> for __`1 hour`__.
⏰ Local time: <t:{timeTS}:f> aka <t:{timeTS}:R>.}
{=(msg.TBF):☣️ {target(mention)} was tricked by {mention} and became <@&{BeastFluRole}> for __`20 minutes`__.
⏰ Local time: <t:{timeBF&F}:f> aka <t:{timeBF&F}:R>.}
{=(msg.Target):{if({TRA}=={LoseOut}):{msg.TLoseOut}|{if({TRA}=={TDeath}):{msg.TDeath}|{if({TRA}=={TTRex}):{msg.TTRex}|{if({TRA}=={TTS}):{msg.TTS}|{if({TRA}=={TBF}):{msg.TBF}}}}}}}
{=(msg.CDOutput):🕰️ {mention} is now on <@&{cdRole}> for __`{cdFormat}`__.
⏰ Local time: <t:{timeCD}:f> aka <t:{timeCD}:R>.}
{=(COMMENT):Set the CDOutput to null if nothing}
{=(msg.UnoCD):<:Legoshi_Priest:725204801821868063> {mention} preaches with holy power to extend the Negotiation time.
<a:Legoshi_A_Battle:710585547478794284> **<@&{cdRole}> Not applied.**
⏰ Local time: N/A}
{=(msg.CDOutput):{if({ApplyCD}==true):{msg.CDOutput}|{msg.UnoCD}}}
{=(msg.Negotiate):{msg.Start}
{msg.User}
{msg.Target}
{msg.CDOutput}}
{embed(title):<:Beastars_B:646550089807953945> Power of The Young Beastar: Negotiations <:YoungBeastar_Icon:923357028557144074>}
{embed(description):{if({isCooldown}==true):{msg.cd}|{if({HasRole}==false):{msg.NoRequiredRoles}|{if({isUserNERole}==true):{msg.UserNE}|{if({isTargetNERole}==true):{msg.TargetNE}|{if({isTargetFreshman}==true):{msg.TargetFresh}|{if({isUserTarget}==true):{msg.noMention}|{if({canNeg}==true):{msg.Negotiate}|{msg.CommandFailed}}}}}}}}}
{=(embed.footer):{prefix}{tagName} @target}
{=(embed.image):{if({canNeg}==true):{HitImage}}}
{embed.image}
{=(FailColor):#880808}
{=(YBColor):#9b59b6}
{=(EmbColor):{if({canNeg}==true):{YBColor}|{FailColor}}}
{embed(color):{EmbColor}}
{=(COMMENT):Avoids the bot's default outputs to only have our custom ones to display.}
{silence}
{=(COMMENT):Allows the user of the tag to actually execute the command blocks above, while they normally couldn't outside of it because of the lack of permissions.}
{override}Embed
1 line{"color": 5198940, "image": {"url": "{embed.image}"}, "title": "{embed.title}", "footer": {"text": "{embed.footer}"}, "description": "{embed.description}"}Raw JSON
{
"id": 1198228,
"created_at": "2021-12-18T04:03:59.000Z",
"tag_name": "negotiate",
"nsfw": false,
"owner_id": "237997099432542209",
"uses": 1917,
"description": null,
"restricted": false,
"shared": false,
"deleted": false,
"safe": "",
"hidden": false,
"guild_id": "632804599979311144",
"sharer": "237997099432542209",
"content": "{=(COMMENT):2023-12-25 rev 09: updating cooldown, fixing potential error}\n{=(COMMENT):General configuration}\n{=(COMMENT):Main prefix and name of the tag, to be used in the command's instructions if you'd like to display them.}\n{=(prefix):.}\n{=(tagName):negotiate}\n\n{=(HitImage):{#:2|https://imgur.com/oXzHxIO.gif~1|https://imgur.com/Cn3W3EN.gif~2|https://imgur.com/H5Dv1Nz.gif~1|https://imgur.com/4yJaFIX.gif~2|https://imgur.com/zVZMzig.gif~2|https://imgur.com/8bnuG5C.gif~1|https://imgur.com/TEO7r4W.gif~3|https://imgur.com/sw0fmHA.gif}}\n\n{=(COMMENT):Roles IDs}\n{=(COMMENT):921104937516159047 is the Negotiate Cool down role iD}\n{=(cdRole):921104937516159047}\n{=(COMMENT):920543040966393906 is the Young Beastars role, reward for Leaderboard}\n{=(YBRole):920543040966393906}\n{=(COMMENT):633065421829963776 is the booster role, aka All-Organism Council}\n{=(BRole):633065421829963776}\n{=(COMMENT):737532034930442342 is the T-Rex role, aka Reward Role}\n{=(TRexRole):737532034930442342}\n{=(COMMENT):898435578780074056 is the [No Events] Role, which requested not to participate in any server events.}\n{=(NERole):898435578780074056}\n{=(COMMENT):651172902871367712 is freshman role, protection given to prevent action on new members}\n{=(FRole):651172902871367712}\n{=(COMMENT):689696613597315079 is the dead role, Joke Mute Role}\n{=(DRole):689696613597315079}\n{=(COMMENT):872586027859079188 is ToughSkin, the immunity role so the target doesn't get attacked too often.}\n{=(TSRole):872586027859079188}\n{=(COMMENT):913619173517705286 is the BeastFlu role that adds the symbol, formerly called as InfectedRole }\n{=(BeastFluRole):913619173517705286}\n{=(COMMENT):632848133465964554 is the Mod role, aka Police}\n{=(PRole):632848133465964554}\n{=(COMMENT):is 691787391244959754 is the Hybridgumi Role}\n{=(HRole):691787391244959754}\n{=(COMMENT):is 824746693286297631 is the Clinic Assistant Role}\n{=(CARole):824746693286297631}\n{=(COMMENT):1171271428281212948 is AciveRole, used to indicate if someone is active.}\n{=(AciveRole):1171271428281212948}\n\n{=(COMMENT):Checks if the user has any of the required roles}\n{=(COMMENT):Checks if the user is Young Beastar. the main reward role}\n{=(isYB):{contains({YBRole}):{user(roleids)}}}\n{=(COMMENT):Checks if Checks for any staff roles. Clinic and Hybridgumi are also staff roles. }\n{=(COMMENT):Checks if the user is Police, aka Mod}\n{=(isPolice):{contains({PRole}):{user(roleids)}}}\n{=(COMMENT):Checks if the user is Hybridgumi .}\n{=(isHybridgumi):{contains({HRole}):{user(roleids)}}}\n{=(COMMENT):Checks if the user Clinic Staff.}\n{=(isClinic):{contains({CARole}):{user(roleids)}}}\n\n{=(COMMENT):Checks has any of the above roles}\n{=(HasRole):{any({isYB}==true|{isPolice}==true|{isHybridgumi}==true|{isClinic}==true):true|false}}\n\n{=(COMMENT):Conditional checks}\n{=(COMMENT):Checks if the user has special command roles}\n{=(COMMENT):Checks if the user is T-Rex.}\n{=(isTRex):{contains({TRexRole}):{user(roleids)}}}\n{=(COMMENT):Checks if the user Booster.}\n{=(isBooster):{contains({BRole}):{user(roleids)}}}\n{=(COMMENT):Checks if the user AciveRole.}\n{=(isActive):{contains({AciveRole}):{user(roleids)}}}\n\n{=(CDTime):25h}\n{=(COMMENT):Specialclass check to reduce timer. time in minutes}\n{=(CDActive):{if({isActive}==true):1|0}}\n{=(CDYB):{if({isYB}==true):1|0}}\n{=(CDTRex):{if({isTRex}==true):6|0}}\n{=(CDBooster):{if({isBooster}==true):6|0}}\n{=(CDHours):{replace(h,*1):{CDTime}}}\n{=(CDTime):{m:trunc({CDHours}-{CDActive}-{CDYB}-{CDTRex}-{CDBooster})}}\n{=(CDTime):{CDTime}h}\n{=(COMMENT):Formats the cooldown properly for outputs. Example: \"15m\" becomes \"15 minutes\".}\n{=(cdFormat):{replace(h, hours):{CDTime}}}\n\n{=(COMMENT):following is first set of checks of command can be used.}\n{=(COMMENT):Checks if a target has been mentioned. If isUserTarget is true, no target was mentioned.}\n{=(isUserTarget):{if({user(id)}=={target(id)}):true|false}}\n{=(COMMENT):Checks if the user is on cooldown.}\n{=(isCooldown):{contains({cdRole}):{user(roleids)}}}\n{=(COMMENT):Checks if the user is currently has no event role.}\n{=(isUserNERole):{contains({NERole}):{user(roleids)}}}\n{=(COMMENT):Checks if the mentioned target has no events role, thus does not want to participate in any events}\n{=(isTargetNERole):{contains({NERole}):{target(roleids)}}}\n{=(COMMENT):Checks if the mentioned target has Freshman Role, Protection for new members}\n{=(isTargetFreshman):{contains({FRole}):{target(roleids)}}}\n\n{=(COMMENT):Checks if the user can use the Negotiate command by meeting the proper conditions.}\n{=(canNeg):{all({isUserTarget}==false|{isCooldown}==false|{isUserNERole}==false|{isTargetNERole}==false|{isTargetFreshman}==false|{HasRole}==true):true|false}}\n\n{=(COMMENT):conditional checks to see command works. If overlap, set to null. Two set of check.}\n\n{=(COMMENT):Checks in user roles}\n{=(COMMENT):Checks if the mentioned target has ToughSkin Role, immunity role from being killed too frequently}\n{=(isToughSkin):{contains({TSRole}):{user(roleids)}}}\n{=(COMMENT):Checks if the user is currently infected with BeastFlu.}\n{=(isIWBF):{contains({BeastFluRole}):{user(roleids)}}}\n\n{=(COMMENT):Checks in target roles}\n{=(COMMENT):Checks if the mentioned target has ToughSkin Role, immunity role from being killed too frequently}\n{=(isTargetToughSkin):{contains({TSRole}):{target(roleids)}}}\n{=(COMMENT):Checks if the user is currently infected with BeastFlu .}\n{=(isTargetIWBF):{contains({BeastFluRole}):{target(roleids)}}}\n{=(COMMENT):Checks if the target is T-Rex. Note same as previously section since trex is already checked for cool down}\n{=(isTargetTRex):{contains({TRexRole}):{target(roleids)}}} \n\n{=(COMMENT):Time for Dead when hit Roulette.}\n{=(RDTime):{#:20|1m~15|10m~10|30m~1|60m}}\n{=(COMMENT):Random Duration when given t-rex}\n{=(UTRexTime):{#:2|12h~3|18h~6|24h~3|36h~2|48h~1|72h}}\n{=(TTRexTime):{#:2|12h~3|18h~6|24h~3|36h~2|48h~1|72h}}\n\n{=(COMMENT):Command setup}\n{=(COMMENT):List of Potential commands}\n{=(LoseOut):echo true Nothing}\n\n{=(COMMENT):user specific}\n{=(UDeath):temprole c {user(id)} {RDTime} +{DRole}}\n{=(UTRex):temprole c {user(id)} {UTRexTime} +{TRexRole}}\n{=(UTS):temprole c {user(id)} 1h +{TSRole}}\n{=(UBF):temprole c {user(id)} 20m +{BeastFluRole}}\n\n{=(COMMENT):targrt specific}\n{=(TDeath):temprole c {target(id)} 1m +{DRole}}\n{=(TTRex):temprole c {target(id)} {TTRexTime} +{TRexRole}}\n{=(TTS):temprole c {target(id)} 1h +{TSRole}}\n{=(TBF):temprole c {target(id)} 20m +{BeastFluRole}}\n\n{=(COMMENT):Set command to Null if already have role, user end}\n{=(UTRex):{{if({isTRex}==true):LoseOut|UTRex}}}\n{=(UTS):{{if({isToughSkin}==true):LoseOut|UTS}}}\n{=(UBF):{{if({isIWBF}==true):LoseOut|UBF}}}\n{=(COMMENT):No need to checkk CMDCD on user}\n\n{=(COMMENT):Set command to Null if already have role, target end}\n{=(TTRex):{{if({isTargetTRex}==true):LoseOut|TTRex}}}\n{=(TTS):{{if({isTargetToughSkin}==true):LoseOut|TTS}}}\n{=(TBF):{{if({isTargetIWBF}==true):LoseOut|TBF}}}\n\n{=(COMMENT):Random the possible commands}\n{=(COMMENT):User Random Actions}\n{=(URA):{{#:2|LoseOut~2|UDeath~1|UTRex~3|UTS~3|UBF~2}}}\n{=(COMMENT):Target Random Actions}\n{=(TRA):{{#:2|LoseOut~2|TDeath~4|TTRex~3|TTS~3|TBF~2}}}\n{=(COMMENT):Add Cooldown on user}\n{=(CDAdd):temprole c {user(id)} {CDTime} +{cdRole}}\n\n{=(CDaddCheck):{{#:5|addCD~1|UnoCD}}}\n{=(COMMENT):Special condition to not add CD. If random chance for no CD, CD not applied}\n{=(ApplyCD):{all({canNeg}==true|{CDaddCheck}!={UnoCD}):true|false}}\n\n{=(COMMENT):Command execution}\n{=():}\n{=(COMMENT):Activate the chosen random command}\n{{if({canNeg}==true):c:{URA}}}\n{{if({canNeg}==true):c:{TRA}}}\n{=(COMMENT):Sets the cooldown role on the user of the tag.}\n{{if({ApplyCD}==true):c:{CDAdd}}}\n\n{=(COMMENT):Error messages configuration.}\n{=(msg.CommandFailed):⚠️ Unable to use to command due to not meeting conditions.}\n{=(msg.noMention):⚠️ You need to mention someone to Negotiate with, {user(mention)}!}\n{=(msg.cd):⚠️ `{prefix}{tagName}` ability on Cool Down for __`{cdFormat}`__, try again later, {user(mention)}!}\n{=(msg.UserNE):⚠️ {user(mention)}, you cannot use this command due to <@&{NERole}> :octagonal_sign: blocking the use of optional commands!}\n{=(msg.TargetNE):⚠️ Users with <@&{NERole}> :octagonal_sign: have opted out of optional commands.\nPlease select a different target, {user(mention)}!}\n{=(msg.TargetFresh):⚠️ <@&{FRole}> are immune to optional commands since they are new members.\nPlease select a different target, {user(mention)}!}\n{=(msg.NoRequiredRoles):⚠️ <@&{YBRole}> only. Obtained by taking 1st place non staff in the Monthly Leaderboards, posted in <#632840076132614161>.}\n\n\n{=(COMMENT):Setting up time Statement, used for the discord time messages}\n{=(COMMENT):Time for CD duration. does not know how to use the variable time {cooldown} in math, so have to do conversion directly}\n{=(COMMENT):CD Time, used formula since varible}\n{=(CDSeconds):{replace(s,*1):{replace(m,*60):{replace(h,*3600):{replace(d,*86400):{CDTime}}}}}}\n{=(timeCD):{m:trunc({unix}+{CDSeconds})}}\n{=(COMMENT):Roulette Death Time, used formula since varible}\n{=(UDeathSeconds):{replace(m,*60):{RDTime}}}\n{=(timeUDeath):{m:trunc({unix}+{UDeathSeconds})}}\n{=(timeTDeath):{m:trunc({unix}+60)}}\n{=(COMMENT):T-rex Time, used formula since varible}\n{=(UTRexSeconds):{replace(h,*3600):{UTRexTime}}}\n{=(timeUTRex):{m:trunc({unix}+{UTRexSeconds})}}\n{=(TTRexSeconds):{replace(h,*3600):{TTRexTime}}}\n{=(timeTTRex):{m:trunc({unix}+{TTRexSeconds})}}\n{=(COMMENT):Time for TS Duration 1h}\n{=(timeTS):{m:round({unix}+3600)}}\n{=(COMMENT):Time for beastflu Duration 20}\n{=(timeBF&F):{m:round({unix}+1200)}}\n\n{=(COMMENT):Setting Output messages}\n{=(msg.Start):🤝 {mention} has started negotiations with {target(mention)}!\n<:BloodMoon:656365681062707200> Results:}\n\n{=(COMMENT):Output messages for the user side}\n{=(msg.ULoseOut):<:Legoshi_Cry:637780894769217575> {mention} got the bad end of the negotiations and got **Nothing**.}\n\n{=(msg.UDeath):<:Legoshi_Doomed:714925382322749500> Negotiations failed and {mention} was killed by {target(mention)}!\n🪦 {mention} is now <@&{DRole}> for __`{RDTime}`__.\n⏰ Local time: <t:{timeUDeath}:f> aka <t:{timeUDeath}:R>.}\n\n{=(msg.UTRex):<:TRex_Icon:894637849419341885> Negotiations is a success as {mention} obtained the formula to evolve into <@&{TRexRole}> for __`{UTRexTime}`__.\n⏰ Local time: <t:{timeUTRex}:f> aka <t:{timeUTRex}:R>.}\n\n{=(msg.UTS):🛡️ {mention} successfully negotiated for protection spell, gaining <@&{TSRole}> for __`1 hour`__. \n⏰ Local time: <t:{timeTS}:f> aka <t:{timeTS}:R>.}\n\n{=(msg.UBF):☣️ {mention} was tricked by {target(mention)} and became <@&{BeastFluRole}> for __`20 minutes`__. \n⏰ Local time: <t:{timeBF&F}:f> aka <t:{timeBF&F}:R>.}\n\n{=(msg.User):{if({URA}=={LoseOut}):{msg.ULoseOut}|{if({URA}=={UDeath}):{msg.UDeath}|{if({URA}=={UTRex}):{msg.UTRex}|{if({URA}=={UTS}):{msg.UTS}|{if({URA}=={UBF}):{msg.UBF}}}}}}}\n\n{=(COMMENT):Output messages for the target side}\n{=(msg.TLoseOut):<:Haru_Cry:701151133342630008> {target(mention)} got the bad end of the negotiations and got **Nothing**.}\n\n{=(msg.TDeath):<:Melon_Evil:674444605449830410> Negotiations failed and {target(mention)} was killed by {mention}!\n🪦 {target(mention)} is now <@&{DRole}> for __`1 minute`__.\n⏰ Local time: <t:{timeTDeath}:f> aka <t:{timeTDeath}:R>.}\n\n{=(msg.TTRex):<:TRex_Icon:894637849419341885> Negotiations is a success as {target(mention)} obtained the formula to evolve into <@&{TRexRole}> for __`{UTRexTime}`__.\n⏰ Local time: <t:{timeTTRex}:f> aka <t:{timeTTRex}:R>.}\n\n{=(msg.TTS):🛡️ {target(mention)} successfully negotiated for protection spell, gaining <@&{TSRole}> for __`1 hour`__. \n⏰ Local time: <t:{timeTS}:f> aka <t:{timeTS}:R>.}\n\n{=(msg.TBF):☣️ {target(mention)} was tricked by {mention} and became <@&{BeastFluRole}> for __`20 minutes`__. \n⏰ Local time: <t:{timeBF&F}:f> aka <t:{timeBF&F}:R>.}\n\n{=(msg.Target):{if({TRA}=={LoseOut}):{msg.TLoseOut}|{if({TRA}=={TDeath}):{msg.TDeath}|{if({TRA}=={TTRex}):{msg.TTRex}|{if({TRA}=={TTS}):{msg.TTS}|{if({TRA}=={TBF}):{msg.TBF}}}}}}}\n\n{=(msg.CDOutput):🕰️ {mention} is now on <@&{cdRole}> for __`{cdFormat}`__.\n⏰ Local time: <t:{timeCD}:f> aka <t:{timeCD}:R>.}\n{=(COMMENT):Set the CDOutput to null if nothing}\n\n{=(msg.UnoCD):<:Legoshi_Priest:725204801821868063> {mention} preaches with holy power to extend the Negotiation time. \n<a:Legoshi_A_Battle:710585547478794284> **<@&{cdRole}> Not applied.**\n⏰ Local time: N/A}\n\n{=(msg.CDOutput):{if({ApplyCD}==true):{msg.CDOutput}|{msg.UnoCD}}}\n\n{=(msg.Negotiate):{msg.Start}\n\n{msg.User} \n\n{msg.Target}\n\n{msg.CDOutput}}\n\n\n{embed(title):<:Beastars_B:646550089807953945> Power of The Young Beastar: Negotiations <:YoungBeastar_Icon:923357028557144074>}\n\n{embed(description):{if({isCooldown}==true):{msg.cd}|{if({HasRole}==false):{msg.NoRequiredRoles}|{if({isUserNERole}==true):{msg.UserNE}|{if({isTargetNERole}==true):{msg.TargetNE}|{if({isTargetFreshman}==true):{msg.TargetFresh}|{if({isUserTarget}==true):{msg.noMention}|{if({canNeg}==true):{msg.Negotiate}|{msg.CommandFailed}}}}}}}}}\n\n{=(embed.footer):{prefix}{tagName} @target}\n\n{=(embed.image):{if({canNeg}==true):{HitImage}}}\n{embed.image}\n\n{=(FailColor):#880808}\n{=(YBColor):#9b59b6}\n\n{=(EmbColor):{if({canNeg}==true):{YBColor}|{FailColor}}}\n{embed(color):{EmbColor}}\n\n{=(COMMENT):Avoids the bot's default outputs to only have our custom ones to display.}\n{silence}\n{=(COMMENT):Allows the user of the tag to actually execute the command blocks above, while they normally couldn't outside of it because of the lack of permissions.}\n{override}",
"embed": "{\"color\": 5198940, \"image\": {\"url\": \"{embed.image}\"}, \"title\": \"{embed.title}\", \"footer\": {\"text\": \"{embed.footer}\"}, \"description\": \"{embed.description}\"}",
"last_fetched": "2026-10-20T18:10:37.607Z"
}