alert_pushbullet.sh 500 B

1234567891011121314
  1. #!/bin/bash
  2. # LGSM alert_pushbullet.sh function
  3. # Author: Daniel Gibbs
  4. # Website: https://gameservermanagers.com
  5. lgsm_version="140516"
  6. # Description: alerts using pushbullet.
  7. local modulename="Alert"
  8. function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
  9. curl -u """${pushbullettoken}"":" -d type="note" -d body="${alertbody}" -d title="${alertsubject}" 'https://api.pushbullet.com/v2/pushes' >/dev/null 2>&1
  10. fn_print_ok_nl "Sent Pushbullet alert"
  11. fn_scriptlog "Sent Pushbullet alert"