Skip to content

Commit 436c87d

Browse files
jamiew0wdgibbs64
andauthored
feat(alerts): add Gotify support to alerts (#3509)
* added gotify to default configs * added gotify to info_messages.sh * added gotify to core_function.sh * added gotify to alerts.sh * core of alert_gotify.sh * fixed unterminated string in default configs * fixed mistakes in alert_gotify.sh * fixed bad quoting in alert_gotify.sh * first working version, gotify does not like emojis * added back curl options * added catch for $gotifywebhook to alert.sh * tabs over spaces * standardised json * message Co-authored-by: Daniel Gibbs <[email protected]>
1 parent d936775 commit 436c87d

File tree

127 files changed

+643
-21
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+643
-21
lines changed

lgsm/config-default/config-lgsm/acserver/_default.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ emailalert="off"
4343
4444
emailfrom=""
4545

46+
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify
47+
gotifyalert="off"
48+
gotifytoken="token"
49+
gotifywebhook="webhook"
50+
4651
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt
4752
iftttalert="off"
4853
ifttttoken="accesstoken"

lgsm/config-default/config-lgsm/ahl2server/_default.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ emailalert="off"
4949
5050
emailfrom=""
5151

52+
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify
53+
gotifyalert="off"
54+
gotifytoken="token"
55+
gotifywebhook="webhook"
56+
5257
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt
5358
iftttalert="off"
5459
ifttttoken="accesstoken"

lgsm/config-default/config-lgsm/ahlserver/_default.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ emailalert="off"
4444
4545
emailfrom=""
4646

47+
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify
48+
gotifyalert="off"
49+
gotifytoken="token"
50+
gotifywebhook="webhook"
51+
4752
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt
4853
iftttalert="off"
4954
ifttttoken="accesstoken"

lgsm/config-default/config-lgsm/arkserver/_default.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ emailalert="off"
4747
4848
emailfrom=""
4949

50+
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify
51+
gotifyalert="off"
52+
gotifytoken="token"
53+
gotifywebhook="webhook"
54+
5055
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt
5156
iftttalert="off"
5257
ifttttoken="accesstoken"

lgsm/config-default/config-lgsm/arma3server/_default.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ emailalert="off"
6060
6161
emailfrom=""
6262

63+
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify
64+
gotifyalert="off"
65+
gotifytoken="token"
66+
gotifywebhook="webhook"
67+
6368
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt
6469
iftttalert="off"
6570
ifttttoken="accesstoken"

lgsm/config-default/config-lgsm/avserver/_default.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ emailalert="off"
4545
4646
emailfrom=""
4747

48+
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify
49+
gotifyalert="off"
50+
gotifytoken="token"
51+
gotifywebhook="webhook"
52+
4853
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt
4954
iftttalert="off"
5055
ifttttoken="accesstoken"

lgsm/config-default/config-lgsm/bb2server/_default.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ emailalert="off"
5050
5151
emailfrom=""
5252

53+
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify
54+
gotifyalert="off"
55+
gotifytoken="token"
56+
gotifywebhook="webhook"
57+
5358
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt
5459
iftttalert="off"
5560
ifttttoken="accesstoken"

lgsm/config-default/config-lgsm/bbserver/_default.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ emailalert="off"
4444
4545
emailfrom=""
4646

47+
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify
48+
gotifyalert="off"
49+
gotifytoken="token"
50+
gotifywebhook="webhook"
51+
4752
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt
4853
iftttalert="off"
4954
ifttttoken="accesstoken"

lgsm/config-default/config-lgsm/bdserver/_default.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ emailalert="off"
4444
4545
emailfrom=""
4646

47+
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify
48+
gotifyalert="off"
49+
gotifytoken="token"
50+
gotifywebhook="webhook"
51+
4752
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt
4853
iftttalert="off"
4954
ifttttoken="accesstoken"

lgsm/config-default/config-lgsm/bf1942server/_default.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ emailalert="off"
3737
3838
emailfrom=""
3939

40+
# Gotify Alerts | https://docs.linuxgsm.com/alerts/gotify
41+
gotifyalert="off"
42+
gotifytoken="token"
43+
gotifywebhook="webhook"
44+
4045
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt
4146
iftttalert="off"
4247
ifttttoken="accesstoken"

0 commit comments

Comments
 (0)