关闭 tracker 功能

This commit is contained in:
A.C.Sukazyo Eyre 2022-11-02 16:03:35 +08:00
parent 2fa6950e4e
commit 5f8cbcffd6
Signed by: Eyre_S
GPG Key ID: C17CE40291207874
4 changed files with 8 additions and 8 deletions

View File

@ -1,6 +1,6 @@
## Core
VERSION = 0.8.0.10
VERSION = 0.8.0.11
CODENAME = putian

View File

@ -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;
}

View File

@ -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,

View File

@ -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.");