From 53e999d87fe2d2479fcb80991f8904b6e9fff1d3 Mon Sep 17 00:00:00 2001
From: Chris Kearney <chris@kearneymail.com>
Date: Sun, 14 Aug 2016 12:27:53 -0700
Subject: [PATCH] cards chat command improvements

---
 .../com/comandante/creeper/bot/commands/CardsCommand.java  | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/main/java/com/comandante/creeper/bot/commands/CardsCommand.java b/src/main/java/com/comandante/creeper/bot/commands/CardsCommand.java
index 1d216476..50ad41ab 100644
--- a/src/main/java/com/comandante/creeper/bot/commands/CardsCommand.java
+++ b/src/main/java/com/comandante/creeper/bot/commands/CardsCommand.java
@@ -3,10 +3,9 @@ package com.comandante.creeper.bot.commands;
 import com.comandante.creeper.blackjack.BlackJack;
 import com.comandante.creeper.blackjack.Deck;
 import com.comandante.creeper.bot.BotCommandManager;
-import com.google.api.client.util.Lists;
+import com.google.common.collect.Lists;
 import com.google.common.collect.Sets;
 
-import java.util.ArrayList;
 import java.util.List;
 import java.util.Set;
 
@@ -26,8 +25,8 @@ public class CardsCommand extends BotCommand {
         deck.shuffle();
         List<BlackJack.Card> cards = com.google.common.collect.Lists.newArrayList(deck.next(), deck.next(), deck.next(), deck.next(), deck.deal());
         String asciiPlayingCardHand = BlackJack.getAsciiPlayingCardHand(cards);
-        ArrayList<String> resp = Lists.newArrayList();
-        resp.add(asciiPlayingCardHand);
+        List<String> resp = Lists.newArrayList();
+        resp.addAll(Lists.newArrayList(asciiPlayingCardHand.split("[\\r\\n]+")));
         return resp;
     }
 }
-- 
GitLab