Browse Source

Merge remote-tracking branch 'origin/develop' into develop

pull/1601/head
Daniel Gibbs 8 years ago
parent
commit
b5863e7e6c
  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. 7
      lgsm/functions/alert_pushbullet.sh
  73. 32
      lgsm/functions/alert_telegram.sh
  74. 2
      lgsm/functions/mods_list.sh
  75. 8
      lgsm/functions/update_factorio.sh
  76. 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

7
lgsm/functions/alert_pushbullet.sh

@ -24,12 +24,11 @@ fn_rawurlencode() {
esac
encoded+="${o}"
done
echo "${encoded}" # You can either set a return variable (FASTER)
REPLY="${encoded}" #+or echo the result (EASIER)... or both... :p
echo "${encoded}" # If echo is faster, let's just echo it.
}
pbalertbody=$(fn_rawurlencode "${alertbody}"; echo ${REPLY})
pbalertsubject=$(fn_rawurlencode "${alertsubject}"; echo ${REPLY})
pbalertbody=$(fn_rawurlencode "${alertbody}")
pbalertsubject=$(fn_rawurlencode "${alertsubject}")
fn_print_dots "Sending Pushbullet alert"
sleep 1

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

2
lgsm/functions/mods_list.sh

@ -68,7 +68,7 @@ mod_info_darkrpmodification=( MOD "darkrpmodification" "DarkRP Modification" "ht
# Oxidemod
mod_info_rustoxide=( MOD "rustoxide" "Oxide for Rust" "https://dl.bintray.com/oxidemod/builds/Oxide-Rust.zip" "Oxide-Rust.zip" "0" "LowercaseOff" "${systemdir}" "OVERWRITE" "ENGINES" "Rust;" "NOTGAMES" "http://oxidemod.org/downloads/oxide-for-rust.1659/" "Allows for the use of plugins" )
mod_info_hwoxide=( MOD "hwoxide" "Oxide for Hurtworld" "https://dl.bintray.com/oxidemod/builds/Oxide-Hurtworld.zip" "Oxide-Hurtworld.zip" "0" "LowercaseOff" "${systemdir}" "OVERWRITE" "ENGINES" "Hurtworld;" "NOTGAMES" "http://oxidemod.org/downloads/oxide-for-hurtworld.1332/" "Allows for the use of plugins" )
mod_info_sdtdoxide=( MOD "sdtdoxide" "Oxide for 7 Days To Die" "https://dl.bintray.com/oxidemod/builds/Oxide-7DaysToDie.zip" "Oxide-7DaysToDie.zip" "0" "LowercaseOff" "${systemdir}" "OVERWRITE" "ENGINES" "7 Days To Die;" "NOTGAMES" "http://oxidemod.org/downloads/oxide-for-7-days-to-die.813/" "Allows for the use of plugins" )
mod_info_sdtdoxide=( MOD "sdtdoxide" "Oxide for 7 Days To Die" "https://dl.bintray.com/oxidemod/builds/Oxide-SevenDays.zip" "Oxide-SevenDays.zip" "0" "LowercaseOff" "${systemdir}" "OVERWRITE" "ENGINES" "7 Days To Die;" "NOTGAMES" "http://oxidemod.org/downloads/oxide-for-7-days-to-die.813/" "Allows for the use of plugins" )
# REQUIRED: Set all mods info into the global array
mods_global_array=( "${mod_info_metamod[@]}" "${mod_info_sourcemod[@]}" "${mod_info_ulib[@]}" "${mod_info_ulx[@]}" "${mod_info_utime[@]}" "${mod_info_uclip[@]}" "${mod_info_acf[@]}" "${mod_info_acf_missiles[@]}" "${mod_info_acf_sweps[@]}" "${mod_info_advdupe2[@]}" "${mod_info_darkrp[@]}" "${mod_info_darkrpmodification[@]}" "${mod_info_rustoxide[@]}" "${mod_info_hwoxide[@]}" "${mod_info_sdtdoxide[@]}" )

8
lgsm/functions/update_factorio.sh

@ -26,7 +26,7 @@ fn_update_factorio_dl(){
fn_update_factorio_currentbuild(){
# Gets current build info
# Checks if current build info is available. If it fails, then a server restart will be forced to generate logs.
if [ ! -f "${consolelogdir}/${servicename}-console.log" ]; then
if [ ! -f "${logdir}/server/factorio-current.log" ]; then
fn_print_error "Checking for update: factorio.com"
sleep 1
fn_print_error_nl "Checking for update: factorio.com: No logs with server version found"
@ -41,7 +41,7 @@ fn_update_factorio_currentbuild(){
command_start.sh
sleep 1
# Check again and exit on failure.
if [ ! -f "${consolelogdir}/${servicename}-console.log" ]; then
if [ ! -f "${logdir}/server/factorio-current.log" ]; then
fn_print_fail_nl "Checking for update: factorio.com: Still No logs with server version found"
fn_script_log_fatal "Checking for update: factorio.com: Still No logs with server version found"
core_exit.sh
@ -49,7 +49,7 @@ fn_update_factorio_currentbuild(){
fi
# Get current build from logs
currentbuild=$(grep "Loading mod base" "${consolelogdir}"/"${servicename}"-console.log 2> /dev/null|awk '{print $5}'|tail -1)
currentbuild=$(grep "Loading mod base" "${logdir}"/server/factorio-current.log 2> /dev/null|awk '{print $5}'|tail -1)
if [ -z "${currentbuild}" ]; then
fn_print_error_nl "Checking for update: factorio.com: Current build version not found"
fn_script_log_error "Checking for update: factorio.com: Current build version not found"
@ -60,7 +60,7 @@ fn_update_factorio_currentbuild(){
command_stop.sh
exitbypass=1
command_start.sh
currentbuild=$(grep "Loading mod base" "${consolelogdir}"/"${servicename}"-console.log 2> /dev/null|awk '{print $5}'|tail -1)
currentbuild=$(grep "Loading mod base" "${logdir}"/server/factorio-current.log 2> /dev/null|awk '{print $5}'|tail -1)
if [ -z "${currentbuild}" ]; then
fn_print_fail_nl "Checking for update: factorio.com: Current build version still not found"
fn_script_log_fatal "Checking for update: factorio.com: Current build version still not found"

0
linuxgsm.sh

Loading…
Cancel
Save