rps

Privateunrated

Content

34 lines
{=():}

{=(COMMENT):Carl Throws}
{=(carl.throw):{range:2-4}}
{=(carl.throw.words):{if({carl.throw}==2):Rock|{if({carl.throw}==3):Paper|{if({carl.throw}==4):Scissors}}}}

{=(COMMENT):Player Throws}
{=(L.args):{lower:{args}}}
{=(spaced):{replace(, ):{args}}}
{=(player.throw):{if({L.args}==rock):2|{if({L.args}==paper):3|{all({L.args}==scissors|{carl.throw}==2):1|4}}}}
{=(player.throw.cap):{upper:{spaced(2)}}{replace( ,):{spaced(3+)}}}

{=(COMMENT):Win/Lose Math}
{=(outcome):{if({player.throw}>{carl.throw}):win|{if({player.throw}=={carl.throw}):tie|{if({player.throw}<{carl.throw}):lose}}}}

{=(COMMENT):Color}
{=(win.color):00FF00}
{=(tie.color):FF8800}
{=(lose.color):FF0000}

{=(COMMENT):Title}
{=(win.title):YOU WIN!}
{=(tie.title):TIE!}
{=(lose.title):YOU LOSE!}

{=(COMMENT):Descriptions}
{=(win.desc):You threw **{player.throw.cap}** and Carl threw **{carl.throw.words}**!}
{=(tie.desc):You and Carl both threw **{carl.throw.words}**.}
{=(lose.desc):You threw **{player.throw.cap}** and Carl threw **{carl.throw.words}**.}

{=(COMMENT):Embed}
{embed(color):#{{outcome}.color}}
{embed(title):{{outcome}.title}}
{embed(description):{{outcome}.desc}}

Embed

1 line
{"color": 16777215, "title": "Title", "author": {"name": "Rock, Paper, Scissors... SHOOT!", "icon_url": "{server(icon)}"}, "footer": {"text": "Used by {user(proper)} • {uses} uses.", "icon_url": "{user(icon)}"}, "description": "Description"}
Raw JSON
{
  "id": 866479,
  "created_at": "2021-06-03T16:08:14.000Z",
  "tag_name": "rps",
  "nsfw": false,
  "owner_id": "297817481878437888",
  "uses": 77,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "837396952186486865",
  "sharer": "297817481878437888",
  "content": "{=():}\n\n{=(COMMENT):Carl Throws}\n{=(carl.throw):{range:2-4}}\n{=(carl.throw.words):{if({carl.throw}==2):Rock|{if({carl.throw}==3):Paper|{if({carl.throw}==4):Scissors}}}}\n\n{=(COMMENT):Player Throws}\n{=(L.args):{lower:{args}}}\n{=(spaced):{replace(, ):{args}}}\n{=(player.throw):{if({L.args}==rock):2|{if({L.args}==paper):3|{all({L.args}==scissors|{carl.throw}==2):1|4}}}}\n{=(player.throw.cap):{upper:{spaced(2)}}{replace( ,):{spaced(3+)}}}\n\n{=(COMMENT):Win/Lose Math}\n{=(outcome):{if({player.throw}>{carl.throw}):win|{if({player.throw}=={carl.throw}):tie|{if({player.throw}<{carl.throw}):lose}}}}\n\n{=(COMMENT):Color}\n{=(win.color):00FF00}\n{=(tie.color):FF8800}\n{=(lose.color):FF0000}\n\n{=(COMMENT):Title}\n{=(win.title):YOU WIN!}\n{=(tie.title):TIE!}\n{=(lose.title):YOU LOSE!}\n\n{=(COMMENT):Descriptions}\n{=(win.desc):You threw **{player.throw.cap}** and Carl threw **{carl.throw.words}**!}\n{=(tie.desc):You and Carl both threw **{carl.throw.words}**.}\n{=(lose.desc):You threw **{player.throw.cap}** and Carl threw **{carl.throw.words}**.}\n\n{=(COMMENT):Embed}\n{embed(color):#{{outcome}.color}}\n{embed(title):{{outcome}.title}}\n{embed(description):{{outcome}.desc}}",
  "embed": "{\"color\": 16777215, \"title\": \"Title\", \"author\": {\"name\": \"Rock, Paper, Scissors... SHOOT!\", \"icon_url\": \"{server(icon)}\"}, \"footer\": {\"text\": \"Used by {user(proper)} • {uses} uses.\", \"icon_url\": \"{user(icon)}\"}, \"description\": \"Description\"}",
  "last_fetched": "2026-10-20T16:39:43.285Z"
}