message: change method for building slack message
diff: @@ -452,22 +452,20 @@ function Slackbot(configuration) {
  slack_botkit.middleware.format.use(function formatForSlack(bot, message,platform_message, next) {
  - platform_message = {
  - type: message.type || 'message',
  - channel: message.channel,
  - text: message.text || null,
  - username: message.username || null,
  - thread_ts: message.thread_ts || null,
  - reply_broadcast: message.reply_broadcast || null,
  - parse: message.parse || null,
  - link_names: message.link_names || null,
  - attachments: message.attachments ?
  - JSON.stringify(message.attachments) : null,
  - unfurl_links: typeof message.unfurl_links !== 'undefined' ? message.unfurl_links : null,
  - unfurl_media: typeof message.unfurl_media !== 'undefined' ? message.unfurl_media : null,
  - icon_url: message.icon_url || null,
  - icon_emoji: message.icon_emoji || null,
  - };
  + platform_message.type = message.type || 'message';
  + platform_message.channel = message.channel;
  + platform_message.text = message.text || null;
  + platform_message.username = message.username || null;
  + platform_message.thread_ts = message.thread_ts || null;
  + platform_message.reply_broadcast = message.reply_broadcast || null;
  + platform_message.parse = message.parse || null;
  + platform_message.link_names = message.link_names || null;
  + platform_message.attachments = message.attachments ?
  + JSON.stringify(message.attachments) : null;
  + platform_message.unfurl_links = typeof message.unfurl_links !== 'undefined' ? message.unfurl_links : null;
  + platform_message.unfurl_media = typeof message.unfurl_media !== 'undefined' ? message.unfurl_media : null;
  + platform_message.icon_url = message.icon_url || null;
  + platform_message.icon_emoji = message.icon_emoji || null;
  if (platform_message.icon_url || platform_message.icon_emoji || platform_message.username) {
  