argt
Privateunrated
Content
41 lines{delete}
{=(cmd_use):
Please use the command as follows:
`!cbr [Map Code] [Outcome] (Cyclone) [Notes]`
**Outcome:** Use `W` for Win or `L` for Loss
**Cyclone:** `C` if cyclone or blank if none
**Notes:** Please include some comment about the match. It does not need to be a novel.
}
{assign(err_msg):Please pick a correct map code#Please specify Win or Loss with `W` or `L`}
{=(comment):Check Errors and break if detected}
{=(e.arg):{if({args}!=):0|100}}
{=(e.map):{and({args(1)}<7|{args(1)}>0):0|10}}
{=(e.match):{any({lower:{args(2)}}==w|{lower:{args(2)}}==l):0|1}}
{=(errors):{calc:{e.arg}+{e.map}+{e.match}}}
{=(error_message):{if({errors}>=100):{cmd_use}|{if({errors}>=10):{err_msg(1):#}|{if({errors}>=1):{err_msg(2):#}|}}}}
{=(comment):Make variable assignments}
{assign(map_code):Greece|Islands of Ice|North|Northern Waters|Sleeping Giant|Warriors Path}
{assign(map):{and({args(1)}>0|{args(1)}<7):{map_code({args(1)}):|}}}
{assign(match_result):{if({lower:{args(2)}}==w):Win|Loss}}
{assign(cyclone):{if({lower:{args(3)}}==c):Yes|No}}
{=(comment):Assign Notes}
{=(len):{index(&$):{args} &$}}
{assign(notes):{and({len}>3|{cyclone}==Yes):{args(4+)}|{and({len}>2|{cyclone}==No):{args(3+)}|None}}}
{=(comment):Formatting Embed Output}
{=(report):
**Map:** {map}
**Cyclone:** {cyclone}
**Notes:** {notes}
}
{embed(color):{if({errors}>0):#F4D03F|{if({match_result}==Win):#2ECC71|#E74C3C}}}
{embed(timestamp):now}
{embed(title):{if({errors}>0):ERROR|{match_result}}}
{embed(description):{if({errors}>0):{error_message}|{report}}}Embed
1 line{"color": 5198940, "title": "na", "author": {"name": "Battle Report", "icon_url": "https://wiki.gcdn.co/images/0/0e/Hq.png"}, "footer": {"text": "Clan Battles Season 11", "icon_url": ""}, "thumbnail": {"url": "https://wiki.gcdn.co/images/a/a4/Icon_27.png"}, "timestamp": "2020-11-15T00:00:00.000", "description": "na"}Raw JSON
{
"id": 405192,
"created_at": "2020-11-02T00:18:44.000Z",
"tag_name": "argt",
"nsfw": false,
"owner_id": "388907478009511936",
"uses": 185,
"description": null,
"restricted": false,
"shared": false,
"deleted": false,
"safe": "unrated",
"hidden": false,
"guild_id": "483292324118528001",
"sharer": "388907478009511936",
"content": "{delete}\n\n{=(cmd_use): \nPlease use the command as follows:\n`!cbr [Map Code] [Outcome] (Cyclone) [Notes]`\n**Outcome:** Use `W` for Win or `L` for Loss\n**Cyclone:** `C` if cyclone or blank if none\n**Notes:** Please include some comment about the match. It does not need to be a novel.\n}\n{assign(err_msg):Please pick a correct map code#Please specify Win or Loss with `W` or `L`}\n\n{=(comment):Check Errors and break if detected}\n{=(e.arg):{if({args}!=):0|100}}\n{=(e.map):{and({args(1)}<7|{args(1)}>0):0|10}}\n{=(e.match):{any({lower:{args(2)}}==w|{lower:{args(2)}}==l):0|1}}\n{=(errors):{calc:{e.arg}+{e.map}+{e.match}}}\n\n{=(error_message):{if({errors}>=100):{cmd_use}|{if({errors}>=10):{err_msg(1):#}|{if({errors}>=1):{err_msg(2):#}|}}}}\n\n{=(comment):Make variable assignments}\n{assign(map_code):Greece|Islands of Ice|North|Northern Waters|Sleeping Giant|Warriors Path}\n{assign(map):{and({args(1)}>0|{args(1)}<7):{map_code({args(1)}):|}}}\n{assign(match_result):{if({lower:{args(2)}}==w):Win|Loss}}\n{assign(cyclone):{if({lower:{args(3)}}==c):Yes|No}}\n\n{=(comment):Assign Notes}\n{=(len):{index(&$):{args} &$}}\n{assign(notes):{and({len}>3|{cyclone}==Yes):{args(4+)}|{and({len}>2|{cyclone}==No):{args(3+)}|None}}}\n\n{=(comment):Formatting Embed Output}\n{=(report):\n**Map:** {map}\n**Cyclone:** {cyclone}\n\n**Notes:** {notes}\n}\n\n{embed(color):{if({errors}>0):#F4D03F|{if({match_result}==Win):#2ECC71|#E74C3C}}}\n{embed(timestamp):now}\n{embed(title):{if({errors}>0):ERROR|{match_result}}}\n{embed(description):{if({errors}>0):{error_message}|{report}}}",
"embed": "{\"color\": 5198940, \"title\": \"na\", \"author\": {\"name\": \"Battle Report\", \"icon_url\": \"https://wiki.gcdn.co/images/0/0e/Hq.png\"}, \"footer\": {\"text\": \"Clan Battles Season 11\", \"icon_url\": \"\"}, \"thumbnail\": {\"url\": \"https://wiki.gcdn.co/images/a/a4/Icon_27.png\"}, \"timestamp\": \"2020-11-15T00:00:00.000\", \"description\": \"na\"}",
"last_fetched": "2026-10-20T22:59:31.495Z"
}