mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-06-09 07:18:22 +00:00
chzzkHandler fix
This commit is contained in:
parent
20417745d4
commit
a3b69acc18
@ -94,8 +94,7 @@ object ChzzkHandler {
|
|||||||
val streamInfo = getStreamInfo(it.channel.channelId)
|
val streamInfo = getStreamInfo(it.channel.channelId)
|
||||||
if (streamInfo.content?.status == "OPEN" && !it.isActive) {
|
if (streamInfo.content?.status == "OPEN" && !it.isActive) {
|
||||||
try {
|
try {
|
||||||
if(it.channel.isBroadcasting)
|
it.isActive(true, streamInfo)
|
||||||
it.isActive(true, streamInfo)
|
|
||||||
} catch(e: Exception) {
|
} catch(e: Exception) {
|
||||||
logger.info("Exception: ${e.stackTraceToString()}")
|
logger.info("Exception: ${e.stackTraceToString()}")
|
||||||
}
|
}
|
||||||
@ -123,8 +122,7 @@ object ChzzkHandler {
|
|||||||
val streamInfo = getStreamInfo(it.channel.channelId)
|
val streamInfo = getStreamInfo(it.channel.channelId)
|
||||||
if (streamInfo.content?.status == "OPEN" && !it.isActive) {
|
if (streamInfo.content?.status == "OPEN" && !it.isActive) {
|
||||||
try {
|
try {
|
||||||
if(it.channel.isBroadcasting)
|
it.isActive(true, streamInfo)
|
||||||
it.isActive(true, streamInfo)
|
|
||||||
} catch(e: Exception) {
|
} catch(e: Exception) {
|
||||||
logger.info("Exception: ${e.stackTraceToString()}")
|
logger.info("Exception: ${e.stackTraceToString()}")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user