 
     # Send to Hubot based on message type
     switch subtype
+
+      when 'message'
+        @robot.logger.debug "Received message: '#{text}' in channel: #{channel.name}, from: #{user.name}"
+        @receive new TextMessage(user, text, message.ts)
 
       when 'bot_message'
         @robot.logger.debug "#{bot.name} has joined #{channel.name}"

  message: (message) =>
    {text, user, channel, subtype, topic, bot} = message

    # Hubot expects this format for TextMessage Listener
    bot.room = channel.id if bot
    user.room = channel.id if user

    # Direct messages
    if channel.id[0] is 'D'

        @receive new TopicMessage user, message.topic, message.ts

      else        
        @robot.logger.debug "Received message: '#{text}' in channel: #{channel.name}, subtype: #{subtype}"
        message.user = user
        @receive new CatchAllMessage(message)



