rps
Privateunrated
Content
42 lines{=(prefix):!}
{=(tagname):rps}
{=(muteTime):60s}
{=(muteRole):646276399895937025}
{=(l1):{lower:{1}}}
{=(bot):{random:rock~paper~scissors}}
{=(rock):1}
{=(paper):2}
{=(scissors):3}
{=(isValid):{contains({l1}):rock paper scissors}}
{=(COMMENT):Solves the winner based on what the user and the bot chose.
Reference at https://www.codecademy.com/forum_questions/5346a0b77c82ca5619001c38}
{=(eval):{m:trunc(trunc(trunc({{l1}}-{{bot}})+5)%3)}}
{=(COMMENTS):Embed Structures based on math block's results}
{=(embTitle):You win!~You lose!~It's a tie!}
{=(embColor):#3EB709~#B70909~#5B8DDC}
{=(executeCommand):=():~c:temprole {user(id)} {muteRole} {muteTime}~=():}
{=(quoteFor0):Congratulations, you beat me~Damn! You got me there, like seriously.~}
{=(quoteFor1):Imagine losing to a bot~Maybe try again~That's very, very sad~I knew you'll use {l1}. Can't fool a non-living thing}
{=(quoteFor2):Well, that was not what's supposed to happen~Uh oh. This is awkward.~Oh, well...~That's strange}
{=(finalTitle):{list({eval}):{embTitle}}}
{=(finalColor):{list({eval}):{embColor}}}
{=(finalDescription):
> You: `{1}`
> Me: `{bot}`
"{#:{quoteFor{eval}}}"}
{=(COMMENT):All outputs and embed fields}
{{if({isValid}==true):{list({eval}):{executeCommand}}|blacklist(Please enter a valid choice `rock`, `paper`, `scissors`):{server(id)}}}
{embed(title):{finalTitle}}
{embed(color):{finalColor}}
{embed(description):{finalDescription}}Embed
1 line{"color": 16777215, "author": {"name": "Rock Paper Scissors", "icon_url": "{user(avatar)}"}, "footer": {"text": "{prefix}{tagname} [rock/paper/scissors]"}, "thumbnail": {"url": "{server(icon)}"}}Raw JSON
{
"id": 672519,
"created_at": "2021-03-13T06:31:27.000Z",
"tag_name": "rps",
"nsfw": false,
"owner_id": "646276399895937025",
"uses": 86,
"description": null,
"restricted": false,
"shared": false,
"deleted": false,
"safe": "unrated",
"hidden": false,
"guild_id": "765906329356861460",
"sharer": "646276399895937025",
"content": "{=(prefix):!}\n{=(tagname):rps}\n{=(muteTime):60s}\n{=(muteRole):646276399895937025}\n\n\n{=(l1):{lower:{1}}}\n{=(bot):{random:rock~paper~scissors}}\n{=(rock):1}\n{=(paper):2}\n{=(scissors):3}\n{=(isValid):{contains({l1}):rock paper scissors}}\n\n\n{=(COMMENT):Solves the winner based on what the user and the bot chose.\nReference at https://www.codecademy.com/forum_questions/5346a0b77c82ca5619001c38}\n{=(eval):{m:trunc(trunc(trunc({{l1}}-{{bot}})+5)%3)}}\n\n\n{=(COMMENTS):Embed Structures based on math block's results}\n{=(embTitle):You win!~You lose!~It's a tie!}\n{=(embColor):#3EB709~#B70909~#5B8DDC}\n{=(executeCommand):=():~c:temprole {user(id)} {muteRole} {muteTime}~=():}\n{=(quoteFor0):Congratulations, you beat me~Damn! You got me there, like seriously.~}\n{=(quoteFor1):Imagine losing to a bot~Maybe try again~That's very, very sad~I knew you'll use {l1}. Can't fool a non-living thing}\n{=(quoteFor2):Well, that was not what's supposed to happen~Uh oh. This is awkward.~Oh, well...~That's strange}\n\n\n{=(finalTitle):{list({eval}):{embTitle}}}\n{=(finalColor):{list({eval}):{embColor}}}\n{=(finalDescription):\n> You: `{1}`\n> Me: `{bot}`\n\n\"{#:{quoteFor{eval}}}\"}\n\n\n{=(COMMENT):All outputs and embed fields}\n{{if({isValid}==true):{list({eval}):{executeCommand}}|blacklist(Please enter a valid choice `rock`, `paper`, `scissors`):{server(id)}}}\n{embed(title):{finalTitle}}\n{embed(color):{finalColor}}\n{embed(description):{finalDescription}}",
"embed": "{\"color\": 16777215, \"author\": {\"name\": \"Rock Paper Scissors\", \"icon_url\": \"{user(avatar)}\"}, \"footer\": {\"text\": \"{prefix}{tagname} [rock/paper/scissors]\"}, \"thumbnail\": {\"url\": \"{server(icon)}\"}}",
"last_fetched": "2026-10-21T00:40:31.643Z"
}