         item.short = true
         item
 
-      sendAsSlackAttachment(content, res.envelope.room)
+      robot.emit 'esa.slack.attachment', content, res.envelope.room
 
     robot.on 'esa.hear.post', (res, post) ->
       content = buildContent ''
       content.title = post.full_name
       content.title_link = post.url
       content.text = post.body_md
-      sendAsSlackAttachment(content, res.envelope.room)
+      robot.emit 'esa.slack.attachment', content, res.envelope.room
 
     robot.on 'esa.hear.comment', (res, comment, post) ->
       content = buildContent ''

        when 'member_join'
          content.text = data.user.screen_name

      sendAsSlackAttachment(content)

    robot.on 'esa.hear.stats', (res, stats) ->
      content = buildContent 'The stats of esa'

      content.text = comment.body_md
      content.author_name = comment.created_by.screen_name
      content.author_icon = comment.created_by.icon
      robot.emit 'esa.slack.attachment', content, res.envelope.room
