Commit 07ea9e2a authored by user472393's avatar user472393
Browse files

second pass

parent ace0a937
......@@ -511,7 +511,7 @@ racer () {
if [[ "${mode_record[0]}" != "${mode_record[1]}" ]]; then
unset -v "${modes[${mode_record[0]}]}"
fi
printer "<<< then the choice is yours @$loser (${elo_db[$loser]%.*}) >>> $(for i in "${modes[@]}"; do printf '%s\t' "$i"; done)"
printer "<<< decide the victor. the choice is yours @$loser (${elo_db[$loser]%.*}) >>> $(for i in "${modes[@]}"; do printf '%s\t' "$i"; done)"
mode_select "$loser"
tv_updater
sleep 1
......@@ -595,7 +595,7 @@ result_check () {
while inotifywait -qq -e modify "$channel"; do
if tail -n 1 "$channel" | grep -i "$p1" | grep '!won'; then
elo_case1
results[entry]="${modes[entry]} (+$p1)"
results+=("${modes[entry]} (+$p1)")
comments[entry]=$(tail -n 1 "$channel")
comments[entry]=${comments[entry],,}
comments[entry]=${comments[entry]#*!won}
......@@ -604,7 +604,7 @@ result_check () {
return 1
elif tail -n 1 "$channel" | grep -i "$p1" | grep '!lost'; then
elo_case2
results[entry]="${modes[entry]} (+$p2)"
results+=("${modes[entry]} (+$p2)")
comments[entry]=$(tail -n 1 "$channel")
comments[entry]=${comments[entry],,}
comments[entry]=${comments[entry]#*!lost}
......@@ -617,7 +617,7 @@ result_check () {
while read -r result ; do
if [[ "$result" =~ $p1 && "$result" =~ !won ]]; then
elo_case1
results[entry]="${modes[entry]} (+$p1)"
results+=("${modes[entry]} (+$p1)")
comments[entry]=$result
comments[entry]=${comments[entry],,}
comments[entry]=${comments[entry]#*!won}
......@@ -626,7 +626,7 @@ result_check () {
return 1
elif [[ "$result" =~ $p1 && "$result" =~ !lost ]]; then
elo_case2
results[entry]="${modes[entry]} (+$p2)"
results+=("${modes[entry]} (+$p2)")
comments[entry]=$result
comments[entry]=${comments[entry],,}
comments[entry]=${comments[entry]#*!lost}
......
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