// Copyright (c) 2016 Alejandro Blanco <alejandro.b.e@gmail.com>
// MIT License

'use strict';

require('./src/bggBot');

const http = require('http');

const hostname = '0.0.0.0';
const port = 80;

const server = http.createServer(function (req, res) {
    res.statusCode = 200;
    res.setHeader('Content-Type', 'text/plain');
    res.end('This is a Telegram Bot, just type @the_bgg_bot and a board game ' +
            'name in any Telegram chat to use it. The source code is at ' +
            ' https://github.com/ablanco/boardgamegeek-telegram-bot');
});

server.listen(port, hostname, function () {
    console.log(`Server running at http://${hostname}:${port}/`);
});

// Copyright (c) 2016 Alejandro Blanco <alejandro.b.e@gmail.com>
// MIT License

const bot = require('./src/bggBot');

--- 
+++ 
@@ -1,4 +1,23 @@
 // Copyright (c) 2016 Alejandro Blanco <alejandro.b.e@gmail.com>
 // MIT License
 
-const bot = require('./src/bggBot');
+'use strict';
+
+require('./src/bggBot');
+
+const http = require('http');
+
+const hostname = '0.0.0.0';
+const port = 80;
+
+const server = http.createServer(function (req, res) {
+    res.statusCode = 200;
+    res.setHeader('Content-Type', 'text/plain');
+    res.end('This is a Telegram Bot, just type @the_bgg_bot and a board game ' +
+            'name in any Telegram chat to use it. The source code is at ' +
+            ' https://github.com/ablanco/boardgamegeek-telegram-bot');
+});
+
+server.listen(port, hostname, function () {
+    console.log(`Server running at http://${hostname}:${port}/`);
+});
Add a web server so heroku has something to return
