Add pause command to halt processing
All checks were successful
continuous-integration/drone/push Build is passing
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:
@@ -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; }
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user