fix some bugs 2(streamInfo get time fix)

This commit is contained in:
dalbodeule
2024-06-17 17:02:43 +09:00
parent be84a73828
commit eae675eaf6

View File

@@ -61,8 +61,9 @@ object ChzzkHandler {
val streamInfo = getStreamInfo(it.channel.channelId) val streamInfo = getStreamInfo(it.channel.channelId)
if(streamInfo.content.status == "OPEN" && !it.isActive) it.isActive(true, streamInfo) if(streamInfo.content.status == "OPEN" && !it.isActive) it.isActive(true, streamInfo)
if(streamInfo.content.status == "CLOSED" && it.isActive) it.isActive(false, streamInfo) if(streamInfo.content.status == "CLOSED" && it.isActive) it.isActive(false, streamInfo)
Thread.sleep(3000) Thread.sleep(5000)
} }
Thread.sleep(60000)
} }
}.start() }.start()
} }