diff --git a/config.d/mayhem-party.d/fill.sh b/config.d/mayhem-party.d/fill.sh index ecda8db..b2bb548 100644 --- a/config.d/mayhem-party.d/fill.sh +++ b/config.d/mayhem-party.d/fill.sh @@ -4,4 +4,4 @@ curl \ -X POST \ -i -sS \ http://mp.home.blapointe.com:17071/gm/rpc/fillNonPlayerAliases \ - -d '[mario luigi peach daisy wario waluigi bowser junior koopa shy guy boo toad toadette coin star minigame win lose]' + -d "[$(cat ./hotwords.txt | tr '\n' ' ')]" diff --git a/config.d/mayhem-party.d/hotwords.txt b/config.d/mayhem-party.d/hotwords.txt new file mode 100644 index 0000000..eccdb39 --- /dev/null +++ b/config.d/mayhem-party.d/hotwords.txt @@ -0,0 +1,18 @@ +mario +luigi +peach +daisy +wario +waluigi +bowser +junior +koopa +shyguy +boo +toad +toadette +coin +star +minigame +win +lose diff --git a/config.d/mayhem-party.d/init.sh b/config.d/mayhem-party.d/init.sh index 3c7954f..7b3923b 100644 --- a/config.d/mayhem-party.d/init.sh +++ b/config.d/mayhem-party.d/init.sh @@ -4,4 +4,4 @@ set -e bash ./shuffle.sh bash ./fill.sh -cat ./v01-live.yaml +bash ./players.sh diff --git a/config.d/mayhem-party.d/players.sh b/config.d/mayhem-party.d/players.sh new file mode 100644 index 0000000..a1393b8 --- /dev/null +++ b/config.d/mayhem-party.d/players.sh @@ -0,0 +1,2 @@ +#! /bin/bash +cat v01-live.yaml | gojq --yaml-{in,out}put '.users | to_entries[] | {(.key): [.value.state.player, .value.gm.alias]}'