We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Right after launching your bot, you should initialize PingService. This should happen before your bot fetches anything from the Stack Exchange API.
PingService
PingService redunda = new PingService("your api-key", "bot version"); redunda.start();
You can get your API-key in the instances overview of your bot.
Before your scheduled executors fetch anything from the Stack Exchange API or respond to commands, you should check if the instance is on standby:
boolean standbyMode = PingService.standby.get();
If standbyMode is true, DON'T execute the code!
standbyMode
true
If you don't want to use the standby mode while debugging, you can set this with the following line:
redunda.setDebugging(true);
This will prevent PingService.standby from becoming true and stops pinging the server.
PingService.standby