message: pipeline functions
diff: @@ -48,7 +48,7 @@ function SocketBot(configuration) {
  }
  if (message.type == 'message') {
  - controller.receiveMessage(bot, message);
  + controller.ingest(bot, message);
  } else if (message.type == 'hello' && !reconnected) {
  var uid = message.user;
  @@ -93,6 +93,16 @@ function SocketBot(configuration) {
  }, 30000);
  };
  + // simple message clone because its already in the right format!
  + controller.middleware.format.use(function(bot, message, platform_message, next) {
  +
  + for (var key in message) {
  + platform_message[key] = message[key];
  + }
  + next();
  +
  + });
  +
  controller.defineBot(function(botkit, config) {
  var bot = {
  