const Http = require('http')
const MessengeBot = require('messenger-bot')

const APP_SECRET = '770739fb5821713a8418148a16c352ef';
const VALIDATION_TOKEN = 'testing';
const PAGE_ACCESS_TOKEN = 'EAAQ4wdcZBuloBAHHhZCTMdodrpZBDpo5s8Y1JdEorCo6x5O3NUG7KG0vh7Hvz7GyZAWODwEs7cJKQeyVC5oTTBpc1PNtOF403tfCHnHLnWgKvQtfDWu1ZAu9gimsIAhQqpAbcz8IhH3K9jYMZBfoA6uerNfCHN75KxQSbKkFtKqwZDZD';

function FacebookMessengerClient() {
  this.bot = new Bot({
    token: PAGE_ACCESS_TOKEN,
    verify: VALIDATION_TOKEN,
    app_secret: APP_SECRET
  })
}

FacebookMessengerClient.prototype.start = function(bot) {

  this.bot.on('message', (payload, reply) => {
    this.bot.didRecieveMessage(payload.message.text, { id: payload.sender.id }, function() {

    })
  })

  Http.createServer(this.bot.middleware()).listen(process.env.PORT)
};

FacebookMessengerClient.prototype.speak = function(message) {
  this.bot.sendMessage(user.id, { text: message })
}

module.exports = FacebookMessengerClient;

@@ -36,16 +36,17 @@
 Messenge
+r
 Bot = re
@@ -422,16 +422,25 @@
 t = new 
+Messenger
 Bot(%7B%0A  

Fix typo.