Skip to content

Instantly share code, notes, and snippets.

@parwatcodes
Created April 13, 2017 13:46
Show Gist options
  • Save parwatcodes/5a4da739eb3b0c694997e9ca871eb7af to your computer and use it in GitHub Desktop.
Save parwatcodes/5a4da739eb3b0c694997e9ca871eb7af to your computer and use it in GitHub Desktop.
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