Browse Source

Merge pull request #1534 from bennet0496/master

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

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

8
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"

10
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
lgsm/functions/alert_telegram.sh

@ -0,0 +1,32 @@
#!/bin/bash
# LinuxGSM alert_telegram.sh function
# Author: Bennet Becker <[email protected]>
# 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
linuxgsm.sh

Loading…
Cancel
Save