Top Elo data for Webpage

This commit is contained in:
TadahTech 2016-04-28 19:23:57 -05:00
parent 84c0b1b389
commit 725481f310

View File

@ -51,9 +51,9 @@ public class TopEloCommand extends CommandBase<EloManager>
caller.sendMessage(" "); caller.sendMessage(" ");
Plugin.getRepo().getTopElo(limit, data -> { Plugin.getRepo().getTopElo(limit, data -> {
for(int i = 0; i < data.size(); i++){ for(int i = 0; i < data.size(); i++){
StringBuilder builder = new StringBuilder("#"); StringBuilder builder = new StringBuilder();
TopEloData topEloData = data.get(i); TopEloData topEloData = data.get(i);
builder.append((i + 1)).append(": ").append(topEloData.getName()).append(" (").append("<division>").append(")"); builder.append((i + 1)).append(": ").append(topEloData.getName()).append(" ").append("<division>").append("");
SlackMessage slackMessage = new SlackMessage(builder.toString()); SlackMessage slackMessage = new SlackMessage(builder.toString());
SlackAPI.getInstance().sendMessage(SlackTeam.DEVELOPER, "#top-elo", slackMessage, false); SlackAPI.getInstance().sendMessage(SlackTeam.DEVELOPER, "#top-elo", slackMessage, false);
caller.sendMessage(builder.toString()); caller.sendMessage(builder.toString());