guess
Guessing game tag w/ cheat command (!guess cheat or !guess answer). Put the role required to use the cheat command in the cheatrole variable. See setup instructions on the original tag: https://carl.gg/t/555151
Privateunrated
Content
46 lines{=(game.role):ID HERE}
{=(cheatrole):ID HERE}
{=(prefix):!}
{=(tag.name):guess}
{=(comment):this is the upper limit for the random number Carl-bot uses. by default it is 100. keep it reasonable. might error if set higher than 16777217, so please don't do that}
{=(limit):1000}
{=(comment):no more settings to change, best not to touch anything below}
{=():}{override}{silence}
{=(join):+.joined}
{=(leave):-.left}
{=(L1):{lower:{1}}}
{=(jlchk):{contains({L1}):join leave}}
{{if({jlchk}==true):c:rank custom {{L1}(1):.} {{L1}(1):.}{game.role}}}
{break({jlchk}==true):{user(mention)} has {{L1}(2):.} the game.}
{break({jlchk}{contains({game.role}):{user(roleids)}}==falsefalse):You must join the game to play. Do `{prefix}{tag.name} join` to join the game. To stop playing, do `{prefix}{tag.name} leave`.}
{=(hex):#:1,2,3,4,5,6,7,8,9,0,A,B,C,D,E,F}
{=(ran.hex):#{{hex}}{{hex}}{{hex}}{{hex}}{{hex}}{{hex}}}
{=(uc):{user(color)}}
{=(rng):{range({uc}):1-{limit}}}
{=(cheat):{and({contains({L1}):cheat answer}==true|{contains({game.role}):{user(roleids)}}==true|{contains({cheatrole}):{user(roleids)}}
==true):true|false}}
{{if({cheat}==true):delete}}
{{if({cheat}==true):dm}}
{if({cheat}==true):Answer for {uc} is {rng}.}
{=(outcome.error):You must follow the tag with a number between 1 and {limit}. To stop playing, do `{prefix}{tag.name} leave`.}
{=(outcome.-1):{user(mention)}, your guess was too high!}
{=(outcome.0):{user(mention)}, you guessed my number! The new number is between 1 and {limit}, try to guess it!}
{=(outcome.1):{user(mention)}, your guess was too low!}
{=(outcome.cheat):}
{=(relation):{m:sgn({rng}-{1})}}
{=(relation):{if({contains({relation}):-1 0 1}==true):{relation}|error}}
{=(relation):{if({cheat}==true):cheat|{relation}}}
{outcome.{relation}}
{=(ran.hex):{if({ran.hex}==#000000):#888888|{ran.hex}}}
{{if({relation}==0):c:role color {game.role} {ran.hex}}}Raw JSON
{
"id": 713578,
"created_at": "2021-03-29T16:25:20.000Z",
"tag_name": "guess",
"nsfw": false,
"owner_id": "489484338514100234",
"uses": 50,
"description": "Guessing game tag w/ cheat command (!guess cheat or !guess answer). Put the role required to use the cheat command in the cheatrole variable. See setup instructions on the original tag: https://carl.gg/t/555151",
"restricted": false,
"shared": false,
"deleted": false,
"safe": "unrated",
"hidden": false,
"guild_id": "636003276881657857",
"sharer": "489484338514100234",
"content": "{=(game.role):ID HERE}\n{=(cheatrole):ID HERE}\n\n{=(prefix):!}\n{=(tag.name):guess}\n\n{=(comment):this is the upper limit for the random number Carl-bot uses. by default it is 100. keep it reasonable. might error if set higher than 16777217, so please don't do that}\n{=(limit):1000}\n\n{=(comment):no more settings to change, best not to touch anything below}\n{=():}{override}{silence}\n{=(join):+.joined}\n{=(leave):-.left}\n\n{=(L1):{lower:{1}}}\n{=(jlchk):{contains({L1}):join leave}}\n\n{{if({jlchk}==true):c:rank custom {{L1}(1):.} {{L1}(1):.}{game.role}}}\n{break({jlchk}==true):{user(mention)} has {{L1}(2):.} the game.}\n\n{break({jlchk}{contains({game.role}):{user(roleids)}}==falsefalse):You must join the game to play. Do `{prefix}{tag.name} join` to join the game. To stop playing, do `{prefix}{tag.name} leave`.}\n\n{=(hex):#:1,2,3,4,5,6,7,8,9,0,A,B,C,D,E,F}\n{=(ran.hex):#{{hex}}{{hex}}{{hex}}{{hex}}{{hex}}{{hex}}}\n{=(uc):{user(color)}}\n\n{=(rng):{range({uc}):1-{limit}}}\n\n{=(cheat):{and({contains({L1}):cheat answer}==true|{contains({game.role}):{user(roleids)}}==true|{contains({cheatrole}):{user(roleids)}}\n==true):true|false}}\n{{if({cheat}==true):delete}}\n{{if({cheat}==true):dm}}\n{if({cheat}==true):Answer for {uc} is {rng}.}\n\n{=(outcome.error):You must follow the tag with a number between 1 and {limit}. To stop playing, do `{prefix}{tag.name} leave`.}\n{=(outcome.-1):{user(mention)}, your guess was too high!}\n{=(outcome.0):{user(mention)}, you guessed my number! The new number is between 1 and {limit}, try to guess it!}\n{=(outcome.1):{user(mention)}, your guess was too low!}\n{=(outcome.cheat):}\n\n{=(relation):{m:sgn({rng}-{1})}}\n{=(relation):{if({contains({relation}):-1 0 1}==true):{relation}|error}}\n{=(relation):{if({cheat}==true):cheat|{relation}}}\n{outcome.{relation}}\n{=(ran.hex):{if({ran.hex}==#000000):#888888|{ran.hex}}}\n{{if({relation}==0):c:role color {game.role} {ran.hex}}}",
"embed": "{}",
"last_fetched": "2026-10-20T15:50:26.474Z"
}