Skip to content

Commit 02da93b

Browse files
committed
add in stuff to wake the app up
1 parent d76302a commit 02da93b

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

index.js

+9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
var config = require('./config');
22

3+
var request = require('request');
4+
35
var express = require('express');
46
var morgan = require('morgan');
57
var bodyParser = require('body-parser');
@@ -119,3 +121,10 @@ var pollHipChat = function(dont_send){
119121
};
120122

121123
pollHipChat(true);
124+
125+
126+
setInterval(function(){
127+
request.head('http://wizardbot.herokuapp.com/messages', function(){
128+
wlog('waking myself up');
129+
});
130+
},60000);

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"node-hipchat": "~0.4.5",
2424
"express": "~4.1.1",
2525
"morgan": "~1.0.1",
26-
"body-parser": "~1.0.2"
26+
"body-parser": "~1.0.2",
27+
"request": "~2.34.0"
2728
}
2829
}

0 commit comments

Comments
 (0)