Skip to content

Commit

Permalink
Removed the infinite timer loop
Browse files Browse the repository at this point in the history
  • Loading branch information
BullShark committed Jan 1, 2022
1 parent 51e93f3 commit 9ff2a90
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/main/java/expectusafterlun/ch/jrobo/JRobo.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,25 +59,6 @@ public JRobo() {
CONN = new Networking(this);
JOKES = new Jokes(this);
BCMD = new BotCommand(this);

// Create and run another thread
final long timeInterval = 1000 * 60 * 60 * 3;
Runnable runnable = new Runnable() {

public void run() {
while (true) {
CONN.msgUser("thatsn0tmysite[m", JOKES.getMommaJoke(""));
try {
Thread.sleep(timeInterval);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
};

Thread thread = new Thread(runnable);
thread.start();
}

/**
Expand Down

0 comments on commit 9ff2a90

Please sign in to comment.