aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/create-rooms.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/create-rooms.sh b/scripts/create-rooms.sh
new file mode 100644
index 0000000..76b47bb
--- /dev/null
+++ b/scripts/create-rooms.sh
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+set -o nounset -o pipefail -o errexit
+
+for ((r=1; r <= 20; r++)); do
+ echo $r
+ curl 'https://uplcg.jaspervdj.be/rooms' \
+ -H 'Content-Type: application/x-www-form-urlencoded' \
+ --data-raw "id=room$(printf "%02d" "$r")&password=&deck=icfp2020"
+done