Created
April 13, 2017 13:46
-
-
Save parwatcodes/5a4da739eb3b0c694997e9ca871eb7af to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express') | |
const bodyParser = require('body-parser') | |
var mysql = require('mysql') | |
var alasql = require('alasql'); | |
var async = require('async'); | |
const request = require('request') | |
const app = express() | |
var json; | |
//const botBuilder = require('claudia-bot-builder'); | |
//const fbTemplate = botBuilder.fbTemplate; | |
app.set('port', (process.env.PORT || 5000)) | |
//keeps heroku awake | |
var http = require("http"); | |
setInterval(function () { | |
http.get("https://murmuring-crag-34873.herokuapp.com/"); | |
}, 300000); // every 5 minutes (300000) | |
// parse application/x-www-form-urlencoded | |
app.use(bodyParser.urlencoded({ extended: false })) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment