|
|
|
@ -5,6 +5,7 @@ import com.robrua.orianna.type.core.champion.ChampionStatus;
|
|
|
|
|
import com.robrua.orianna.type.core.common.QueueType;
|
|
|
|
|
import com.robrua.orianna.type.core.common.Region;
|
|
|
|
|
import com.robrua.orianna.type.core.common.Side;
|
|
|
|
|
import com.robrua.orianna.type.core.currentgame.BannedChampion;
|
|
|
|
|
import com.robrua.orianna.type.core.currentgame.CurrentGame;
|
|
|
|
|
import com.robrua.orianna.type.core.currentgame.MasteryRank;
|
|
|
|
|
import com.robrua.orianna.type.core.currentgame.Participant;
|
|
|
|
@ -210,13 +211,31 @@ public class LeagueOfDiscordModule extends AbstractModule
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
loadingMessage.edit("Game found. Fetching summoners data...");
|
|
|
|
|
sb.append("Team Blue\n");
|
|
|
|
|
|
|
|
|
|
sb.append("Team Blue");
|
|
|
|
|
if(!ginfo.getBannedChampions().isEmpty()) // Bans, if any
|
|
|
|
|
{
|
|
|
|
|
StringJoiner joinedChamps = new StringJoiner("/");
|
|
|
|
|
// WOW, MANY STREAMS, MUCH LAMBDA
|
|
|
|
|
ginfo.getBannedChampions().stream().filter(bc -> bc.getTeam().equals(Side.BLUE)).forEach(bc -> joinedChamps.add(bc.getChampion().getName()));
|
|
|
|
|
sb.append(" - Bans: ").append(joinedChamps.toString());
|
|
|
|
|
}
|
|
|
|
|
sb.append("\n");
|
|
|
|
|
|
|
|
|
|
boolean swapped = false;
|
|
|
|
|
for(Participant i : ginfo.getParticipants())
|
|
|
|
|
{
|
|
|
|
|
if(i.getTeam().equals(Side.PURPLE) && !swapped)
|
|
|
|
|
{
|
|
|
|
|
sb.append("\nTeam Purple\n");
|
|
|
|
|
sb.append("\nTeam Purple");
|
|
|
|
|
if(!ginfo.getBannedChampions().isEmpty()) // Bans, if any
|
|
|
|
|
{
|
|
|
|
|
StringJoiner joinedChamps = new StringJoiner("/");
|
|
|
|
|
// WOW, MANY STREAMS, MUCH LAMBDA
|
|
|
|
|
ginfo.getBannedChampions().stream().filter(bc -> bc.getTeam().equals(Side.PURPLE)).forEach(bc -> joinedChamps.add(bc.getChampion().getName()));
|
|
|
|
|
sb.append(" - Bans: ").append(joinedChamps.toString());
|
|
|
|
|
}
|
|
|
|
|
sb.append("\n");
|
|
|
|
|
swapped = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|