c4-string-regex
v1.1.0
Published
A simple Typescript template to start your package
Downloads
1
Readme
Pharaoh Macros
Fairly judge C4 Bot Reports by using Regex
Features
Auto-Judge all duplicates
Auto-Judge folders
Count scores
Count and store in CSV
Declare your Keys and Scores
Workflow
First Parse the Reports with Pharaoh (get a title and a score, on separate lines)
Then use the tool
## Commands
All commands are bodged, you have to open each respective file and change the CONSTANTS
"auto": "ts-node src/auto_judge_folder.ts",
"start": "ts-node src/index.ts",
"dev": "ts-node src/index.ts",
"count": "ts-node src/count.ts",
"folder": "ts-node src/count_folder.ts",
Start / Dev
Compares one file at a time
Count
Counts Results in one File
Folder
Counts Results in one Folder (and stores in a csv)
Auto
Given a list of reports (regex selector), applies the judging to the other reports (another regex selector)
In case of multiple differente judgments it adds a TODO with all possible judging results
NOTE: Conflict resolution is nunanced, you should consider whether you would want a revert (add a Throw) or if you prefer a TODO as part of your workflow