Commit b3641cc3 authored by user472393's avatar user472393
Browse files

call promoter script with game name

parent 607507d0
......@@ -108,7 +108,7 @@ parser () {
quit "race wanted advertisement"
;;
live)
$promoter
$promoter "$ask"
exit
;;
# ensure the specification for each of the following options
......
......@@ -6,6 +6,8 @@ info () { printf '%s: %s: %s\n' "$name" "$$" "$1" >> "$script_log"; }
warn () { info "$1"; printf '%s: %s\n' "$name" "$1" >&2; }
quit () { warn "$1"; exit 1; }
info "matcher_promoter advertising time"
info "promoter got arg $1"
game=$1
advertising=(irc.local.#the_stream irc.local.#battle irc.quakenet.#arika \
irc.twitch.#tetrisconcept_tv)
......@@ -44,7 +46,7 @@ elo_import () {
spam () {
# advertise player and ratings in channels
for i in "${advertising[@]}"; do
printf '%s\n' "${players[0]} (${elo_db[${players[0]}]%.*}) vs. ${players[1]} (${elo_db[${players[1]}]%.*}) on $stream_url" |\
printf '%s\n' "${players[0]} (${elo_db[${players[0]}]%.*}) & ${players[1]} (${elo_db[${players[1]}]%.*}) in $game on $stream_url" |\
$inwee -b "$i"
done
......
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