From 1f1a4f67ae08801c8ff5222da7b8b4b9cbddf3d9 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Thu, 16 Sep 2021 22:06:49 +0100 Subject: [PATCH] update slack --- lgsm/functions/alert_discord.sh | 2 +- lgsm/functions/alert_ifttt.sh | 2 +- lgsm/functions/alert_slack.sh | 156 ++++++++++++++++++++++---------- 3 files changed, 111 insertions(+), 49 deletions(-) diff --git a/lgsm/functions/alert_discord.sh b/lgsm/functions/alert_discord.sh index 10b5acd37..1406ed26c 100755 --- a/lgsm/functions/alert_discord.sh +++ b/lgsm/functions/alert_discord.sh @@ -15,7 +15,7 @@ json=$(cat <${servername}

Information
${alertdescription}

Game
${gamename}

${alertplayerstitle}
${alertplayers}

Map
${alertmap}

Server IP
${alertip}:${port}

Hostname
${HOSTNAME}

More info
${alerturl}" } EOF ) diff --git a/lgsm/functions/alert_slack.sh b/lgsm/functions/alert_slack.sh index a53767e80..399b1b348 100755 --- a/lgsm/functions/alert_slack.sh +++ b/lgsm/functions/alert_slack.sh @@ -9,54 +9,116 @@ functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" json=$(cat <