Add pause command to halt processing
All checks were successful
continuous-integration/drone/push Build is passing

Useful for now since I have two instances of the bot running in the same servers and I don't want both of them to respond.
This commit is contained in:
2022-08-26 20:27:46 +02:00
parent 2443adfccc
commit a18b34b784
2 changed files with 20 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ public class Configuration
private static boolean verbose = false;
private static boolean paused = false;
public static boolean isVerbose() { return verbose; }
@@ -12,4 +13,7 @@ public class Configuration
// WARNING: verbosity spams the logs a LOT!
public static void setVerbose(boolean v) { verbose = v; }
public static boolean isPaused() { return paused; }
public static void setPaused(boolean p) { paused = p; }
}