Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. //Heartbeat
  2.  
  3. function heartbeat () {
  4. request.post(
  5. 'https://backpack.tf/api/aux/heartbeat/v1',
  6. { json:
  7. {
  8. token: config.bptfUserToken,
  9. automatic: 'all',
  10. i_understand_the_risk: 'true',
  11. }
  12. },
  13. function (error, response, body) {
  14. console.log(body);
  15. }
  16. );
  17. }
  18. var timeout = setInterval(function() {
  19. heartbeat();
  20. client.chatMessage(config.ownerID, "Sending Heartbeat request to backpack.tf");
  21. }, 1000 * 60 * functionIntervals.heartbeatInt);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement