Skip to content

Commit

Permalink
Merge pull request #13 from sieadev/feature/log-bot-loaded
Browse files Browse the repository at this point in the history
Log Startup Time
  • Loading branch information
sieadev authored Nov 25, 2024
2 parents ce6ff71 + 27ee60d commit ed7f7ba
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/net/vitacraft/MoBot.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.File;
import java.time.Duration;
import java.time.Instant;
import java.util.*;

/**
Expand All @@ -33,6 +35,8 @@ public class MoBot {
private Console console;

public MoBot() {
Instant startTime = Instant.now();

ConsoleUtil.clearConsole();

// Initialize the Logger
Expand Down Expand Up @@ -99,6 +103,8 @@ public MoBot() {

// Initialize the Console
console = new Console(this);

logger.info("MoBot startup completed in {} seconds.", Duration.between(startTime, Instant.now()).toSeconds());
}

private DefaultShardManagerBuilder getBuilder() {
Expand Down

0 comments on commit ed7f7ba

Please sign in to comment.