From 6b533bcee9253bdaaf6b8faa1cb3f03fe10b4751 Mon Sep 17 00:00:00 2001 From: dalbodeule <11470513+dalbodeule@users.noreply.github.com> Date: Thu, 1 Aug 2024 20:29:01 +0900 Subject: [PATCH] some debug on TimerEvents --- .../space/mori/chzzk_bot/chatbot/chzzk/MessageHandler.kt | 2 +- .../space/mori/chzzk_bot/common/events/TimerEvents.kt | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/chatbot/src/main/kotlin/space/mori/chzzk_bot/chatbot/chzzk/MessageHandler.kt b/chatbot/src/main/kotlin/space/mori/chzzk_bot/chatbot/chzzk/MessageHandler.kt index 50aa4af..18c0a8c 100644 --- a/chatbot/src/main/kotlin/space/mori/chzzk_bot/chatbot/chzzk/MessageHandler.kt +++ b/chatbot/src/main/kotlin/space/mori/chzzk_bot/chatbot/chzzk/MessageHandler.kt @@ -145,7 +145,7 @@ class MessageHandler( dispatcher.post( TimerEvent( user.token, - TimerType.TIMER, + TimerType.UPTIME, String.format("%02d:%02d:%02d", hours, minutes, seconds) ) ) diff --git a/common/src/main/kotlin/space/mori/chzzk_bot/common/events/TimerEvents.kt b/common/src/main/kotlin/space/mori/chzzk_bot/common/events/TimerEvents.kt index 0e23c9d..b999dc8 100644 --- a/common/src/main/kotlin/space/mori/chzzk_bot/common/events/TimerEvents.kt +++ b/common/src/main/kotlin/space/mori/chzzk_bot/common/events/TimerEvents.kt @@ -1,7 +1,9 @@ package space.mori.chzzk_bot.common.events -enum class TimerType { - UPTIME, TIMER, REMOVE +enum class TimerType(var value: Int) { + UPTIME(0), + TIMER(1), + REMOVE(2) } class TimerEvent(