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 1d216476af17c055fd74e70fe38d129f06ced184..50ad41abb983ab1d1f17bbf54a42396b3d914c92 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; } }