Last active
November 11, 2019 15:32
-
-
Save suissemaxx/e68b264b38f05c8487fe31ff07889930 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
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