                 msg.reply "No live streams were found in \"#{category}\". Try a different category or try again later."
                 return
 
+            response = ""
             for stream in object.streams
                 channel = stream.channel
-                msg.send "#{channel.display_name} (\"#{channel.status}\"): #{channel.url} [Viewers: #{stream.viewers}]"
+                response += "#{channel.display_name} (\"#{channel.status}\"): #{channel.url} [Viewers: #{stream.viewers}]\n"
+            msg.send response
 
             if object._total > TWITCH_MAX_RESULTS
                 msg.reply "There are #{object._total - TWITCH_MAX_RESULTS} other \"#{category}\" live streams."

                return

            channel = object.stream.channel
            msg.send "#{channel.display_name} is streaming #{channel.game} @ #{channel.url}"
            msg.send "Stream status: \"#{channel.status}\""
            msg.send "Viewers: #{object.stream.viewers}"

    robot.respond /ttv top/i, (msg) ->
        createGameURL = (game) ->
            "https://www.twitch.tv/directory/game/#{encodeURIComponent(game)}"

        GetTwitchResult msg, "/games/top", null, (object) ->
            for gameObj, i in object.top
                msg.send "#{i + 1}. #{gameObj.game.name} | Viewers: #{gameObj.viewers} | Channels: #{gameObj.channels} | #{createGameURL(gameObj.game.name)}"

GetTwitchResult = (msg, api, params = {}, handler) ->
    params.client_id = TWITCH_API_KEY


    robot.respond /ttv featured/i, (msg) ->
        GetTwitchResult msg, '/streams/featured', null, (object) ->
            response = ""
            for feature in object.featured
                channel = feature.stream.channel
                response += "#{feature.stream.game}: #{channel.display_name} (#{channel.status}) - #{channel.url} [Viewers: #{feature.stream.viewers}]\n"
            msg.send response

    robot.respond /ttv game (.+)/i, (msg) ->
        category = msg.match[1]
