Skip to content

Commit

Permalink
Extra stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
DxsSucuk committed Jul 5, 2024
1 parent e35d401 commit b81e908
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/de/presti/ree6/bot/BotWorker.java
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ public static String getBranch() {
* @return the repository.
*/
public static String getRepository() {
return gitRepository;
return gitRepository == null ? "https://github.com/Ree6-Applications/Ree6" : gitRepository;
}

/**
Expand Down
10 changes: 10 additions & 0 deletions src/main/java/de/presti/ree6/commands/impl/info/Stats.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public void onPerform(CommandEvent commandEvent) {
}

long ping = System.currentTimeMillis() - start;
long computeTimeStart = System.currentTimeMillis();

EmbedBuilder em = new EmbedBuilder();

Expand Down Expand Up @@ -95,6 +96,15 @@ public void onPerform(CommandEvent commandEvent) {
MessageEditBuilder messageEditBuilder = new MessageEditBuilder();

messageEditBuilder.setContent("");

long computeTime = System.currentTimeMillis() - computeTimeStart;

if (BotConfig.isDebug()) {
em.addField("**DEV ONLY**", "", true);
em.addField("**Compute Time**", computeTime + "ms", true);
em.addField("**DEV ONLY*", "", true);
}

messageEditBuilder.setEmbeds(em.build());

commandEvent.update(message, messageEditBuilder.build());
Expand Down

0 comments on commit b81e908

Please sign in to comment.