From 55aae5a55fb00849f64419005bb91120ea898d67 Mon Sep 17 00:00:00 2001 From: bel Date: Wed, 5 Apr 2023 22:30:45 -0600 Subject: [PATCH] hotwords file and more mayhem-info.sh --- config.d/mayhem-party.d/fill.sh | 2 +- config.d/mayhem-party.d/hotwords.txt | 18 ++++++++++++++++++ config.d/mayhem-party.d/init.sh | 2 +- config.d/mayhem-party.d/players.sh | 2 ++ 4 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 config.d/mayhem-party.d/hotwords.txt create mode 100644 config.d/mayhem-party.d/players.sh 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]}'