From 5f8cbcffd68c86e07017dfa3a45542d16eb7c2d7 Mon Sep 17 00:00:00 2001 From: Eyre_S Date: Wed, 2 Nov 2022 16:03:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E9=97=AD=20tracker=20=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gradle.properties | 2 +- .../java/cc/sukazyo/cono/morny/GradleProjectConfigures.java | 4 ++-- .../cc/sukazyo/cono/morny/bot/event/EventListeners.java | 4 ++-- .../java/cc/sukazyo/cono/morny/daemon/MornyDaemons.java | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) 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.");