Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Heartbeat
- function heartbeat () {
- request.post(
- 'https://backpack.tf/api/aux/heartbeat/v1',
- { json:
- {
- token: config.bptfUserToken,
- automatic: 'all',
- i_understand_the_risk: 'true',
- }
- },
- function (error, response, body) {
- console.log(body);
- }
- );
- }
- var timeout = setInterval(function() {
- heartbeat();
- client.chatMessage(config.ownerID, "Sending Heartbeat request to backpack.tf");
- }, 1000 * 60 * functionIntervals.heartbeatInt);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement