mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-06-09 07:18:22 +00:00
fix some bugs 2(streamInfo get time fix)
This commit is contained in:
parent
be84a73828
commit
eae675eaf6
@ -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()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user