PluralKit/scripts/run-clustered.sh

16 lines
297 B
Bash
Raw Normal View History

2022-04-10 14:57:51 +00:00
#!/bin/sh
notify () {
curl $MGMT/notify -d "$1"
2022-04-10 14:57:51 +00:00
}
curl $MGMT/config > pluralkit.conf
2022-04-10 14:57:51 +00:00
notify "Cluster $NOMAD_ALLOC_INDEX starting"
export PluralKit__Bot__Cluster__NodeName="pluralkit-$NOMAD_ALLOC_INDEX"
dotnet bin/PluralKit.Bot.dll
notify "Cluster $NOMAD_ALLOC_INDEX exited with code $?"