Commit 0d8f1741 authored by nanahira's avatar nanahira

flex config

parent 1ae9b216
Pipeline #608 passed with stages
in 5 minutes and 17 seconds
...@@ -27,7 +27,7 @@ interface RenderData { ...@@ -27,7 +27,7 @@ interface RenderData {
duels: Member[][]; duels: Member[][];
} }
const config: Config = yaml.parse(fs.readFileSync("./config.yaml", "utf-8")); const config: Config = yaml.parse(fs.readFileSync(process.argv[2] || "./config.yaml", "utf-8"));
function shuffle(arr: any[]) { function shuffle(arr: any[]) {
for (let i=arr.length-1; i>=0; i--) { for (let i=arr.length-1; i>=0; i--) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment