diff --git a/src/main/java/wtf/beatrice/hidekobot/Configuration.java b/src/main/java/wtf/beatrice/hidekobot/Configuration.java index 704fbd3..47fb1f7 100644 --- a/src/main/java/wtf/beatrice/hidekobot/Configuration.java +++ b/src/main/java/wtf/beatrice/hidekobot/Configuration.java @@ -8,8 +8,6 @@ public class Configuration private static boolean verbose = false; private static MessageLogger verbosityLogger; - private static boolean paused = false; - private static String prefix = "."; // todo: allow people to set their own user id private static final long botOwnerId = 979809420714332260L; @@ -50,20 +48,10 @@ public class Configuration } /** - * Checks if the bot has paused all operation. + * Get the bot owner's profile id. * - * @return a boolean which is true if the bot is currently paused + * @return a long of the account's id */ - public static boolean isPaused() { return paused; } - - /** - * Set the bot in paused or unpaused state. - * Paused means that it will not reply to anything expect the unpause command. - * - * @param p a boolean specifying if the bot should be paused - */ - public static void setPaused(boolean p) { paused = p; } - public static long getBotOwnerId() { return botOwnerId; } } diff --git a/src/main/java/wtf/beatrice/hidekobot/listeners/MessageListener.java b/src/main/java/wtf/beatrice/hidekobot/listeners/MessageListener.java index c3da0f5..27027c9 100644 --- a/src/main/java/wtf/beatrice/hidekobot/listeners/MessageListener.java +++ b/src/main/java/wtf/beatrice/hidekobot/listeners/MessageListener.java @@ -17,21 +17,6 @@ public class MessageListener extends ListenerAdapter { String eventMessage = event.getMessage().getContentDisplay(); - - if(eventMessage.equalsIgnoreCase("hideko pause")) - { - MessageChannel channel = event.getChannel(); - - boolean paused = Configuration.isPaused(); - String msg = paused ? ":white_check_mark: Resuming normal activity!" : ":pause_button: Pausing operation!"; - Configuration.setPaused(!paused); - channel.sendMessage(msg).queue(); - - return; - } - - if(Configuration.isPaused()) return; - if(eventMessage.equalsIgnoreCase("hideko")) { MessageChannel channel = event.getChannel();