Add shutdown event to logs
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
3416c13f10
commit
d15132e6d6
@ -94,6 +94,7 @@ public class MessageListener extends ListenerAdapter
|
|||||||
MessageChannel channel = event.getChannel();
|
MessageChannel channel = event.getChannel();
|
||||||
|
|
||||||
channel.sendMessage("Going to sleep! Cya :sparkles:").queue();
|
channel.sendMessage("Going to sleep! Cya :sparkles:").queue();
|
||||||
|
logger.log("WARNING! Shutting down!");
|
||||||
|
|
||||||
Executors.newSingleThreadScheduledExecutor().schedule(() ->
|
Executors.newSingleThreadScheduledExecutor().schedule(() ->
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user