diff --git a/gradle.properties b/gradle.properties index 1f88aa7..338d93f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,6 +1,6 @@ ## Core -VERSION = 0.8.0.10 +VERSION = 0.8.0.11 CODENAME = putian diff --git a/src/main/java/cc/sukazyo/cono/morny/GradleProjectConfigures.java b/src/main/java/cc/sukazyo/cono/morny/GradleProjectConfigures.java index d4b2afc..8735b7d 100644 --- a/src/main/java/cc/sukazyo/cono/morny/GradleProjectConfigures.java +++ b/src/main/java/cc/sukazyo/cono/morny/GradleProjectConfigures.java @@ -4,7 +4,7 @@ package cc.sukazyo.cono.morny; * the final field that will be updated by gradle automatically. */ public class GradleProjectConfigures { - public static final String VERSION = "0.8.0.10"; + public static final String VERSION = "0.8.0.11"; public static final String CODENAME = "putian"; - public static final long COMPILE_TIMESTAMP = 1666096021418L; + public static final long COMPILE_TIMESTAMP = 1667376095614L; } diff --git a/src/main/java/cc/sukazyo/cono/morny/bot/event/EventListeners.java b/src/main/java/cc/sukazyo/cono/morny/bot/event/EventListeners.java index 0b300e2..7b165f9 100644 --- a/src/main/java/cc/sukazyo/cono/morny/bot/event/EventListeners.java +++ b/src/main/java/cc/sukazyo/cono/morny/bot/event/EventListeners.java @@ -5,7 +5,7 @@ import cc.sukazyo.cono.morny.bot.api.EventListenerManager; public class EventListeners { public static final OnTelegramCommand COMMANDS_LISTENER = new OnTelegramCommand(); - public static final OnActivityRecord ACTIVITY_RECORDER = new OnActivityRecord(); + @SuppressWarnings("unused") public static final OnActivityRecord ACTIVITY_RECORDER = new OnActivityRecord(); public static final OnUserSlashAction USER_SLASH_ACTION = new OnUserSlashAction(); public static final OnUpdateTimestampOffsetLock UPDATE_TIMESTAMP_OFFSET_LOCK = new OnUpdateTimestampOffsetLock(); public static final OnInlineQueries INLINE_QUERY = new OnInlineQueries(); @@ -19,7 +19,7 @@ public class EventListeners { public static void registerAllListeners () { EventListenerManager.addListener( - ACTIVITY_RECORDER, +// ACTIVITY_RECORDER, UPDATE_TIMESTAMP_OFFSET_LOCK, /* write functional event behind here */ // KUOHUANHUAN_NEED_SLEEP, diff --git a/src/main/java/cc/sukazyo/cono/morny/daemon/MornyDaemons.java b/src/main/java/cc/sukazyo/cono/morny/daemon/MornyDaemons.java index b7585aa..d40ba47 100644 --- a/src/main/java/cc/sukazyo/cono/morny/daemon/MornyDaemons.java +++ b/src/main/java/cc/sukazyo/cono/morny/daemon/MornyDaemons.java @@ -8,7 +8,7 @@ public class MornyDaemons { public static void start () { logger.info("ALL Morny Daemons starting..."); - TrackerDataManager.init(); +// TrackerDataManager.init(); medicationTimerInstance.start(); logger.info("Morny Daemons started."); } @@ -17,10 +17,10 @@ public class MornyDaemons { logger.info("ALL Morny Daemons stopping..."); - TrackerDataManager.DAEMON.interrupt(); +// TrackerDataManager.DAEMON.interrupt(); medicationTimerInstance.interrupt(); - TrackerDataManager.trackingLock.lock(); +// TrackerDataManager.trackingLock.lock(); try { medicationTimerInstance.join(); } catch (InterruptedException e) { e.printStackTrace(System.out); } logger.info("ALL Morny Daemons STOPPED.");