Skip to content

Commit

Permalink
fix server exporter formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Chew committed Jun 5, 2024
1 parent 305cf1c commit eac1522
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/pw/chew/mlb/commands/AdminCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ private void activity(CommandEvent event) {
private void export(CommandEvent event) {
List<String> lines = new ArrayList<>();
var servers = event.getJDA().getGuilds();
lines.add("id,memberCount,name,joinedAt");
lines.add("id,memberCount,\"name\",joinedAt");
for (Guild server : servers) {
lines.add("%s,%s,%s,%s".formatted(server.getId(), server.getMemberCount(), server.getName(), server.getSelfMember().getTimeJoined().toEpochSecond()));
lines.add("%s,%s,\"%s\",%s".formatted(server.getId(), server.getMemberCount(), server.getName(), server.getSelfMember().getTimeJoined().toEpochSecond()));
}

// export to file
Expand Down

0 comments on commit eac1522

Please sign in to comment.