From 66c12523128c8fd4a7c36295c7b2b62dbfc179e2 Mon Sep 17 00:00:00 2001 From: dalbodeule <11470513+dalbodeule@users.noreply.github.com> Date: Wed, 14 Aug 2024 22:15:36 +0900 Subject: [PATCH] debug some codes... --- .../space/mori/chzzk_bot/chatbot/chzzk/ChzzkHandler.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/chatbot/src/main/kotlin/space/mori/chzzk_bot/chatbot/chzzk/ChzzkHandler.kt b/chatbot/src/main/kotlin/space/mori/chzzk_bot/chatbot/chzzk/ChzzkHandler.kt index e174e5f..06c83d3 100644 --- a/chatbot/src/main/kotlin/space/mori/chzzk_bot/chatbot/chzzk/ChzzkHandler.kt +++ b/chatbot/src/main/kotlin/space/mori/chzzk_bot/chatbot/chzzk/ChzzkHandler.kt @@ -222,12 +222,12 @@ class UserHandler( CoroutineScope(Dispatchers.Default).launch { logger.info("${user.username} is live.") + logger.info("ChzzkChat connecting... ${channel.channelName} - ${channel.channelId}") + listener.connectAsync().await() + + streamStartTime = status.content?.openDate?.let { convertChzzkDateToLocalDateTime(it) } + if(!_isActive) { - logger.info("ChzzkChat connecting... ${channel.channelName} - ${channel.channelId}") - listener.connectAsync().await() - - streamStartTime = status.content?.openDate?.let { convertChzzkDateToLocalDateTime(it) } - _isActive = true when(TimerConfigService.getConfig(UserService.getUser(channel.channelId)!!)?.option) { TimerType.UPTIME.value -> dispatcher.post(