From eae675eaf631f305d869c2125fbb4cafe2b16e7a Mon Sep 17 00:00:00 2001 From: dalbodeule <11470513+dalbodeule@users.noreply.github.com> Date: Mon, 17 Jun 2024 17:02:43 +0900 Subject: [PATCH] fix some bugs 2(streamInfo get time fix) --- src/main/kotlin/space/mori/chzzk_bot/chzzk/ChzzkHandler.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/space/mori/chzzk_bot/chzzk/ChzzkHandler.kt b/src/main/kotlin/space/mori/chzzk_bot/chzzk/ChzzkHandler.kt index cf1dee5..e85744b 100644 --- a/src/main/kotlin/space/mori/chzzk_bot/chzzk/ChzzkHandler.kt +++ b/src/main/kotlin/space/mori/chzzk_bot/chzzk/ChzzkHandler.kt @@ -61,8 +61,9 @@ object ChzzkHandler { val streamInfo = getStreamInfo(it.channel.channelId) if(streamInfo.content.status == "OPEN" && !it.isActive) it.isActive(true, streamInfo) if(streamInfo.content.status == "CLOSED" && it.isActive) it.isActive(false, streamInfo) - Thread.sleep(3000) + Thread.sleep(5000) } + Thread.sleep(60000) } }.start() }