Przeglądaj źródła

Adding Telegram Bot Alerts

Bennet Becker 9 lat temu
rodzic
commit
9ec6e013df
73 zmienionych plików z 665 dodań i 63 usunięć
  1. 9 1
      lgsm/config-default/config-lgsm/arkserver/_default.cfg
  2. 9 1
      lgsm/config-default/config-lgsm/arma3server/_default.cfg
  3. 9 1
      lgsm/config-default/config-lgsm/bb2server/_default.cfg
  4. 9 1
      lgsm/config-default/config-lgsm/bf1942server/_default.cfg
  5. 9 1
      lgsm/config-default/config-lgsm/bmdmserver/_default.cfg
  6. 9 1
      lgsm/config-default/config-lgsm/boserver/_default.cfg
  7. 9 1
      lgsm/config-default/config-lgsm/bsserver/_default.cfg
  8. 9 1
      lgsm/config-default/config-lgsm/ccserver/_default.cfg
  9. 9 1
      lgsm/config-default/config-lgsm/cod2server/_default.cfg
  10. 9 1
      lgsm/config-default/config-lgsm/cod4server/_default.cfg
  11. 9 1
      lgsm/config-default/config-lgsm/codserver/_default.cfg
  12. 9 1
      lgsm/config-default/config-lgsm/coduoserver/_default.cfg
  13. 9 1
      lgsm/config-default/config-lgsm/codwawserver/_default.cfg
  14. 9 1
      lgsm/config-default/config-lgsm/coserver/_default.cfg
  15. 9 1
      lgsm/config-default/config-lgsm/csczserver/_default.cfg
  16. 9 1
      lgsm/config-default/config-lgsm/csgoserver/_default.cfg
  17. 9 1
      lgsm/config-default/config-lgsm/csserver/_default.cfg
  18. 9 1
      lgsm/config-default/config-lgsm/cssserver/_default.cfg
  19. 9 1
      lgsm/config-default/config-lgsm/dabserver/_default.cfg
  20. 9 1
      lgsm/config-default/config-lgsm/dmcserver/_default.cfg
  21. 9 1
      lgsm/config-default/config-lgsm/dodserver/_default.cfg
  22. 9 1
      lgsm/config-default/config-lgsm/dodsserver/_default.cfg
  23. 9 1
      lgsm/config-default/config-lgsm/doiserver/_default.cfg
  24. 9 1
      lgsm/config-default/config-lgsm/dstserver/_default.cfg
  25. 9 1
      lgsm/config-default/config-lgsm/emserver/_default.cfg
  26. 8 0
      lgsm/config-default/config-lgsm/fctrserver/_default.cfg
  27. 8 0
      lgsm/config-default/config-lgsm/fofserver/_default.cfg
  28. 9 1
      lgsm/config-default/config-lgsm/gesserver/_default.cfg
  29. 9 1
      lgsm/config-default/config-lgsm/gmodserver/_default.cfg
  30. 9 1
      lgsm/config-default/config-lgsm/hl2dmserver/_default.cfg
  31. 9 1
      lgsm/config-default/config-lgsm/hldmserver/_default.cfg
  32. 9 1
      lgsm/config-default/config-lgsm/hldmsserver/_default.cfg
  33. 8 0
      lgsm/config-default/config-lgsm/hwserver/_default.cfg
  34. 9 1
      lgsm/config-default/config-lgsm/insserver/_default.cfg
  35. 9 1
      lgsm/config-default/config-lgsm/jc2server/_default.cfg
  36. 8 0
      lgsm/config-default/config-lgsm/kfserver/_default.cfg
  37. 8 0
      lgsm/config-default/config-lgsm/l4d2server/_default.cfg
  38. 9 1
      lgsm/config-default/config-lgsm/l4dserver/_default.cfg
  39. 9 1
      lgsm/config-default/config-lgsm/mcserver/_default.cfg
  40. 9 1
      lgsm/config-default/config-lgsm/mtaserver/_default.cfg
  41. 9 1
      lgsm/config-default/config-lgsm/mumbleserver/_default.cfg
  42. 9 1
      lgsm/config-default/config-lgsm/nmrihserver/_default.cfg
  43. 9 1
      lgsm/config-default/config-lgsm/ns2cserver/_default.cfg
  44. 9 1
      lgsm/config-default/config-lgsm/ns2server/_default.cfg
  45. 9 1
      lgsm/config-default/config-lgsm/opforserver/_default.cfg
  46. 9 1
      lgsm/config-default/config-lgsm/pcserver/_default.cfg
  47. 9 1
      lgsm/config-default/config-lgsm/pvkiiserver/_default.cfg
  48. 9 1
      lgsm/config-default/config-lgsm/pzserver/_default.cfg
  49. 9 1
      lgsm/config-default/config-lgsm/q2server/_default.cfg
  50. 9 1
      lgsm/config-default/config-lgsm/q3server/_default.cfg
  51. 9 1
      lgsm/config-default/config-lgsm/qlserver/_default.cfg
  52. 9 1
      lgsm/config-default/config-lgsm/qwserver/_default.cfg
  53. 9 1
      lgsm/config-default/config-lgsm/ricochetserver/_default.cfg
  54. 9 1
      lgsm/config-default/config-lgsm/roserver/_default.cfg
  55. 9 1
      lgsm/config-default/config-lgsm/rustserver/_default.cfg
  56. 9 1
      lgsm/config-default/config-lgsm/sbserver/_default.cfg
  57. 9 1
      lgsm/config-default/config-lgsm/sdtdserver/_default.cfg
  58. 9 1
      lgsm/config-default/config-lgsm/ss3server/_default.cfg
  59. 9 1
      lgsm/config-default/config-lgsm/svenserver/_default.cfg
  60. 9 1
      lgsm/config-default/config-lgsm/terrariaserver/_default.cfg
  61. 9 1
      lgsm/config-default/config-lgsm/tf2server/_default.cfg
  62. 9 1
      lgsm/config-default/config-lgsm/tfcserver/_default.cfg
  63. 8 0
      lgsm/config-default/config-lgsm/ts3server/_default.cfg
  64. 9 1
      lgsm/config-default/config-lgsm/tuserver/_default.cfg
  65. 9 1
      lgsm/config-default/config-lgsm/twserver/_default.cfg
  66. 8 0
      lgsm/config-default/config-lgsm/ut2k4server/_default.cfg
  67. 9 1
      lgsm/config-default/config-lgsm/ut3server/_default.cfg
  68. 9 1
      lgsm/config-default/config-lgsm/ut99server/_default.cfg
  69. 9 1
      lgsm/config-default/config-lgsm/utserver/_default.cfg
  70. 9 1
      lgsm/config-default/config-lgsm/wetserver/_default.cfg
  71. 10 0
      lgsm/functions/alert.sh
  72. 32 0
      lgsm/functions/alert_telegram.sh
  73. 0 0
      linuxgsm.sh

+ 9 - 1
lgsm/config-default/config-lgsm/arkserver/_default.cfg

@@ -34,6 +34,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -87,4 +95,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/arma3server/_default.cfg

@@ -50,6 +50,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -105,4 +113,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/bb2server/_default.cfg

@@ -40,6 +40,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -96,4 +104,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/bf1942server/_default.cfg

@@ -27,6 +27,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -75,4 +83,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/bmdmserver/_default.cfg

@@ -40,6 +40,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -96,4 +104,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/boserver/_default.cfg

@@ -33,6 +33,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -86,4 +94,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/bsserver/_default.cfg

@@ -39,6 +39,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -95,4 +103,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/ccserver/_default.cfg

@@ -35,6 +35,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -91,4 +99,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/cod2server/_default.cfg

@@ -33,6 +33,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
 maxbackups="4"
 maxbackupdays="30"
@@ -75,4 +83,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/cod4server/_default.cfg

@@ -33,6 +33,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
 maxbackups="4"
 maxbackupdays="30"
@@ -75,4 +83,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/codserver/_default.cfg

@@ -33,6 +33,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
 maxbackups="4"
 maxbackupdays="30"
@@ -75,4 +83,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/coduoserver/_default.cfg

@@ -33,6 +33,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
 maxbackups="4"
 maxbackupdays="30"
@@ -75,4 +83,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/codwawserver/_default.cfg

@@ -33,6 +33,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
 maxbackups="4"
 maxbackupdays="30"
@@ -75,4 +83,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/coserver/_default.cfg

@@ -58,6 +58,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -119,4 +127,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/csczserver/_default.cfg

@@ -34,6 +34,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -91,4 +99,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/csgoserver/_default.cfg

@@ -58,6 +58,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -111,4 +119,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/csserver/_default.cfg

@@ -34,6 +34,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -88,4 +96,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/cssserver/_default.cfg

@@ -40,6 +40,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -93,4 +101,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/dabserver/_default.cfg

@@ -35,6 +35,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -88,4 +96,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/dmcserver/_default.cfg

@@ -34,6 +34,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -88,4 +96,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/dodserver/_default.cfg

@@ -34,6 +34,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -88,4 +96,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/dodsserver/_default.cfg

@@ -35,6 +35,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -88,4 +96,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/doiserver/_default.cfg

@@ -37,6 +37,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -90,4 +98,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/dstserver/_default.cfg

@@ -38,6 +38,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -98,4 +106,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/emserver/_default.cfg

@@ -40,6 +40,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -93,4 +101,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 8 - 0
lgsm/config-default/config-lgsm/fctrserver/_default.cfg

@@ -34,6 +34,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 

+ 8 - 0
lgsm/config-default/config-lgsm/fofserver/_default.cfg

@@ -35,6 +35,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 

+ 9 - 1
lgsm/config-default/config-lgsm/gesserver/_default.cfg

@@ -35,6 +35,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -87,4 +95,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/gmodserver/_default.cfg

@@ -50,6 +50,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -104,4 +112,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/hl2dmserver/_default.cfg

@@ -35,6 +35,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -88,4 +96,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/hldmserver/_default.cfg

@@ -34,6 +34,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -87,4 +95,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/hldmsserver/_default.cfg

@@ -35,6 +35,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -88,4 +96,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 8 - 0
lgsm/config-default/config-lgsm/hwserver/_default.cfg

@@ -48,6 +48,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 

+ 9 - 1
lgsm/config-default/config-lgsm/insserver/_default.cfg

@@ -42,6 +42,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -95,4 +103,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/jc2server/_default.cfg

@@ -27,6 +27,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -80,4 +88,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 8 - 0
lgsm/config-default/config-lgsm/kfserver/_default.cfg

@@ -39,6 +39,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 

+ 8 - 0
lgsm/config-default/config-lgsm/l4d2server/_default.cfg

@@ -34,6 +34,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 

+ 9 - 1
lgsm/config-default/config-lgsm/l4dserver/_default.cfg

@@ -34,6 +34,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -87,4 +95,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/mcserver/_default.cfg

@@ -29,6 +29,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -74,4 +82,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/mtaserver/_default.cfg

@@ -28,6 +28,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
 maxbackups="4"
 maxbackupdays="30"
@@ -70,4 +78,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/mumbleserver/_default.cfg

@@ -28,6 +28,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -72,4 +80,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/nmrihserver/_default.cfg

@@ -40,6 +40,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -93,4 +101,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/ns2cserver/_default.cfg

@@ -46,6 +46,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -98,4 +106,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/ns2server/_default.cfg

@@ -46,6 +46,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -98,4 +106,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/opforserver/_default.cfg

@@ -34,6 +34,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -88,4 +96,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/pcserver/_default.cfg

@@ -28,6 +28,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -81,4 +89,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/pvkiiserver/_default.cfg

@@ -35,6 +35,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -88,4 +96,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/pzserver/_default.cfg

@@ -30,6 +30,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -83,4 +91,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/q2server/_default.cfg

@@ -32,6 +32,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
 maxbackups="4"
 maxbackupdays="30"
@@ -74,4 +82,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/q3server/_default.cfg

@@ -32,6 +32,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
 maxbackups="4"
 maxbackupdays="30"
@@ -74,4 +82,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/qlserver/_default.cfg

@@ -32,6 +32,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -86,4 +94,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/qwserver/_default.cfg

@@ -31,6 +31,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
 maxbackups="4"
 maxbackupdays="30"
@@ -73,4 +81,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/ricochetserver/_default.cfg

@@ -53,6 +53,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -107,4 +115,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/roserver/_default.cfg

@@ -35,6 +35,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -92,4 +100,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
-gamelogdate="${gamelogdir}/${servicename}-game-$(date '+%Y-%m-%d-%H:%M:%S').log"
+gamelogdate="${gamelogdir}/${servicename}-game-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/rustserver/_default.cfg

@@ -52,6 +52,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -107,4 +115,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
-gamelogdate="${gamelogdir}/${servicename}-game-$(date '+%Y-%m-%d-%H:%M:%S').log"
+gamelogdate="${gamelogdir}/${servicename}-game-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/sbserver/_default.cfg

@@ -34,6 +34,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -87,4 +95,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/sdtdserver/_default.cfg

@@ -34,6 +34,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -88,4 +96,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/ss3server/_default.cfg

@@ -31,6 +31,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -86,4 +94,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
-gamelogdate="${gamelogdir}/${servicename}-game-$(date '+%Y-%m-%d-%H:%M:%S').log"
+gamelogdate="${gamelogdir}/${servicename}-game-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/svenserver/_default.cfg

@@ -34,6 +34,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -87,4 +95,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/terrariaserver/_default.cfg

@@ -34,6 +34,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -87,4 +95,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/tf2server/_default.cfg

@@ -40,6 +40,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -93,4 +101,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/tfcserver/_default.cfg

@@ -34,6 +34,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -88,4 +96,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 8 - 0
lgsm/config-default/config-lgsm/ts3server/_default.cfg

@@ -23,6 +23,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 

+ 9 - 1
lgsm/config-default/config-lgsm/tuserver/_default.cfg

@@ -32,6 +32,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -85,4 +93,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/twserver/_default.cfg

@@ -34,6 +34,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 
@@ -88,4 +96,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 8 - 0
lgsm/config-default/config-lgsm/ut2k4server/_default.cfg

@@ -31,6 +31,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
 maxbackups="4"
 maxbackupdays="30"

+ 9 - 1
lgsm/config-default/config-lgsm/ut3server/_default.cfg

@@ -43,6 +43,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
 maxbackups="4"
 maxbackupdays="30"
@@ -88,4 +96,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
-gamelogdate="${gamelogdir}/${servicename}-game-$(date '+%Y-%m-%d-%H:%M:%S').log"
+gamelogdate="${gamelogdir}/${servicename}-game-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/ut99server/_default.cfg

@@ -31,6 +31,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
 maxbackups="4"
 maxbackupdays="30"
@@ -74,4 +82,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/utserver/_default.cfg

@@ -35,6 +35,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
 maxbackups="4"
 maxbackupdays="30"
@@ -76,4 +84,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 9 - 1
lgsm/config-default/config-lgsm/wetserver/_default.cfg

@@ -27,6 +27,14 @@ pushbulletalert="off"
 pushbullettoken="accesstoken"
 channeltag=""
 
+# Telegram Bot Alerts
+# Get an Bot API key from @botfather
+# The chat id is the User or channel name or an integer like so:
+#   https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/38388851#38388851
+telegramalert="off"
+telegramapikey=""
+telegramchatid=""
+
 ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
 maxbackups="4"
 maxbackupdays="30"
@@ -69,4 +77,4 @@ emaillog="${lgsmlogdir}/${servicename}-email.log"
 
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 10 - 0
lgsm/functions/alert.sh

@@ -69,6 +69,16 @@ elif [ -z "${pushbullettoken}" ]&&[ "${function_selfname}" == "command_test_aler
 	fn_script_error_warn "Pushbullet token not set"
 fi
 
+if [ "${telegramalert}" == "on" ]&&[ -n "${telegramapikey}" ]; then
+	alert_telegram.sh
+elif [ "${telegramalert}" != "on" ]&&[ "${function_selfname}" == "command_test_alert.sh" ]; then
+	fn_print_warn_nl "Telegram Messages not enabled"
+	fn_script_log_warn "Telegram Messages not enabled"
+elif [ -z "${telegramapikey}" ]&&[ "${function_selfname}" == "command_test_alert.sh" ]; then
+	fn_print_error_nl "Telegram API-key not set. Get one from @botfather"
+	fn_script_error_warn "Telegram API-key not set. Get one from @botfather"
+fi
+
 if [ "${discordalert}" == "on" ]&&[ -n "${discordalert}" ]; then
 	alert_discord.sh
 elif [ "${discordalert}" != "on" ]&&[ "${function_selfname}" == "command_test_alert.sh" ]; then

+ 32 - 0
lgsm/functions/alert_telegram.sh

@@ -0,0 +1,32 @@
+#!/bin/bash
+# LinuxGSM alert_telegram.sh function
+# Author: Bennet Becker <bennet@becker-dd.de>
+# Website: https://bytegaming.de
+# Description: Sends Telegram Message alert including the server status.
+
+local commandname="ALERT"
+local commandaction="Alert"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
+
+
+json=$(cat <<EOF
+{
+	"chat_id": "${telegramchatid}",
+	"text": "<b>🚨🚨🚨${alertsubject}🚨🚨🚨</b>\n\n${alertbody}",
+	"parse_mode": "HTML",
+	"disable_notification": true
+}
+EOF
+)
+
+fn_print_dots "Sending Telegram Message"
+sleep 1
+telegramsend=$(curl -sSL -H "Content-Type: application/json" -X POST -d """$json""" "https://api.telegram.org/bot${telegramapikey}/sendMessage" | grep -Po '(?<="description":").*?(?=")'|uniq)
+
+if [ -n "${telegramsend}" ]; then
+	fn_print_fail_nl "Sending Telegram Message: ${telegramsend}"
+	fn_script_log_fatal "Sending Telegram Message: ${telegramsend}"
+else
+	fn_print_ok_nl "Sending Telegram Message"
+	fn_script_log_pass "Sent Telegram Message"
+fi

+ 0 - 0
linuxgsm.sh