Daniel Gibbs 4 лет назад
Родитель
Сommit
46d153a4f5
1 измененных файлов с 14 добавлено и 14 удалено
  1. 14 14
      lgsm/functions/alert_slack.sh

+ 14 - 14
lgsm/functions/alert_slack.sh

@@ -24,6 +24,20 @@ json=$(cat <<EOF
 				}
 			]
 		},
+		{
+			"type": "context",
+			"elements": [
+				{
+					"type": "image",
+					"image_url": "${alerticon}",
+					"alt_text": "${alerticonalt}"
+				},
+				{
+					"type": "mrkdwn",
+					"text": "*${gamename}*"
+				}
+			]
+		},
 		{
 			"type": "header",
 			"text": {
@@ -44,20 +58,6 @@ json=$(cat <<EOF
 				"alt_text": "${alertimagealt}"
 			}
 		},
-		{
-			"type": "context",
-			"elements": [
-				{
-					"type": "image",
-					"image_url": "${alerticon}",
-					"alt_text": "${alerticonalt}"
-				},
-				{
-					"type": "mrkdwn",
-					"text": "*${gamename}*"
-				}
-			]
-		},
 		{
 			"type": "section",
 			"fields": [