Skip to content

Instantly share code, notes, and snippets.

@suissemaxx
Last active November 11, 2019 15:32
Show Gist options
  • Save suissemaxx/e68b264b38f05c8487fe31ff07889930 to your computer and use it in GitHub Desktop.
Save suissemaxx/e68b264b38f05c8487fe31ff07889930 to your computer and use it in GitHub Desktop.
var express = require('express');
var app = express();
app.listen(80, function() {
console.log('Chatfuel Bot-Server listening on port 80...');
});
app.get('/*', function(req, res) {
var jsonResponse = [];
jsonResponse.push({ "text": "Hi. " + (Math.random() * 5 + 1).toFixed(0) + " is a lucky number..." });
res.send(jsonResponse);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment