anpasssung DB Verbindung und Ini ausgabe
This commit is contained in:
@ -139,19 +139,33 @@ public class shadowrun implements Runnable{
|
||||
EmbedBuilder outputBox = new EmbedBuilder();
|
||||
outputBox.setColor(Color.BLACK);
|
||||
outputBox.setTitle("Initiative:");
|
||||
String channelId = "542202034330271759";
|
||||
|
||||
while (in.hasNextLine()) {
|
||||
message = in.nextLine().trim();
|
||||
if(message.trim().equals("FIN")) {
|
||||
break;
|
||||
}
|
||||
String[] msgParts = message.split("\\|",3);
|
||||
//jda.getUserById(msgParts[0]).getName();
|
||||
if(message.startsWith("out:")) {
|
||||
String[] msgParts = message.split(":", 2);
|
||||
if(!msgParts[1].equals(""))
|
||||
channelId = msgParts[1];
|
||||
}
|
||||
else {
|
||||
|
||||
outputBox.addField( msgParts[0], msgParts[1], false);
|
||||
String[] msgParts = message.split("\\|");
|
||||
//jda.getUserById(msgParts[0]).getName();
|
||||
StringBuilder iniTicks = new StringBuilder();
|
||||
iniTicks.append(msgParts[1]);
|
||||
for(int i = 2; i < msgParts.length; i++) {
|
||||
iniTicks.append("\t - \t ");
|
||||
iniTicks.append(msgParts[i]);
|
||||
}
|
||||
outputBox.addField(msgParts[0], iniTicks.toString(), false);
|
||||
}
|
||||
out.println("ACKSend");
|
||||
}
|
||||
jda.getTextChannelById("542202034330271759").sendMessage(outputBox.build()).queue();
|
||||
jda.getTextChannelById(channelId).sendMessage(outputBox.build()).queue();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user