This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
wget https://ch.tetr.io/api/users/lists/league/all --output-document ~/Downloads/all.json | |
originalranks=( "x" "u" "ss" "s+" "s" "s-" "a+" "a" "a-" "b+" "b" "b-" "c+" "c" "c-" "d+" ) | |
originaltuiiranks=( "x" "u" "ss" "sp" "s" "sm" "ap" "a" "am" "bp" "b" "bm" "cp" "c" "cm" "dp" ) | |
# short for Original Tenchi Ultra Improved Indistinguishable Ranks • created this way for compatibility with applications that depended on the output of data found on https://tetrio.team2xh.net/?t=ranks | |
printf "{\"date\":\"$(date --utc +"%Y-%m-%d %H:%M:%S UTC")\",\"thresholds\":[" > ~/Downloads/thresholds.json # begin the JSON object | |
for index in {0..15}; do |