ply

Privateunrated

Content

28 lines
{=(COMMENT):Variable blocks that will be used later in the tag.}
{=(userNumber):{range:1-10}}
{=(targetNumber):{range:1-10}}


{=(COMMENT):This makes it so the command @‘s a player, therefore allowing you to play with someone else. If you do not @ someone, it says, “My number,” meaning Carl-bot’s number, as you are playing with him.}
{=(player):{if({user(id)}=={target(id)}):My number:|{target(mention)}’s number:}}


{=(COMMENT):Here is where it determines which message should be said, depending on what the results of the game are.}
{=(output):{if({userNumber}>{targetNumber}):You won!|{if({userNumber}<{targetNumber}):You lose!|{if({userNumber}=={targetNumber}):You tie!}}}}

{=(COMMENT):This is where it all comes together and we use the variable blocks like I said we would use in the first comment.}
Your number: {userNumber}
{player} {targetNumber}
{output}


{=(COMMENT):This is for my server. It makes it so members can only use the command in the commands channel. It basically says, “Does this user have at least one of these roles?” If so, nothing happens, if not, they can only use the command in the commands channel. Shout out to Toxic for this part! If you want to use this in your server, just change the ID’s below, otherwise you can delete it. Also, note that if you don’t have three mod roles of which you only want to require one of for it to work, you have to change the code to work for you, but this works for me, so… yeah.}
{=():}
{=(modrole1):613399526081953798}
{=(modrole2):613798956270354433}
{=(modrole3):730553643513806870}
{=(channelid):745682223088271512}

{=(check):{contains(true):{contains({modrole1}):{user(roleids)}} {contains({modrole2}):{user(roleids)}} {contains({modrole3}):{user(roleids)}}}}

{{if({check}==false):require( ):{channelid}}}
Raw JSON
{
  "id": 1157786,
  "created_at": "2021-11-19T12:23:37.000Z",
  "tag_name": "ply",
  "nsfw": false,
  "owner_id": "527934523044790272",
  "uses": 74,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "613394833695965210",
  "sharer": "527934523044790272",
  "content": "{=(COMMENT):Variable blocks that will be used later in the tag.}\n{=(userNumber):{range:1-10}}\n{=(targetNumber):{range:1-10}}\n\n\n{=(COMMENT):This makes it so the command @‘s a player, therefore allowing you to play with someone else. If you do not @ someone, it says, “My number,” meaning Carl-bot’s number, as you are playing with him.}\n{=(player):{if({user(id)}=={target(id)}):My number:|{target(mention)}’s number:}}\n\n\n{=(COMMENT):Here is where it determines which message should be said, depending on what the results of the game are.}\n{=(output):{if({userNumber}>{targetNumber}):You won!|{if({userNumber}<{targetNumber}):You lose!|{if({userNumber}=={targetNumber}):You tie!}}}}\n\n{=(COMMENT):This is where it all comes together and we use the variable blocks like I said we would use in the first comment.}\nYour number: {userNumber}\n{player} {targetNumber}\n{output}\n\n\n{=(COMMENT):This is for my server. It makes it so members can only use the command in the commands channel. It basically says, “Does this user have at least one of these roles?” If so, nothing happens, if not, they can only use the command in the commands channel. Shout out to Toxic for this part! If you want to use this in your server, just change the ID’s below, otherwise you can delete it. Also, note that if you don’t have three mod roles of which you only want to require one of for it to work, you have to change the code to work for you, but this works for me, so… yeah.}\n{=():}\n{=(modrole1):613399526081953798}\n{=(modrole2):613798956270354433}\n{=(modrole3):730553643513806870}\n{=(channelid):745682223088271512}\n\n{=(check):{contains(true):{contains({modrole1}):{user(roleids)}} {contains({modrole2}):{user(roleids)}} {contains({modrole3}):{user(roleids)}}}}\n\n{{if({check}==false):require( ):{channelid}}}",
  "embed": "{}",
  "last_fetched": "2026-10-20T18:01:48.991Z"
}