mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-06-09 07:18:22 +00:00
debug some errors.
- ChzzkHandler.runStreamInfo debugs with startThread functions.
This commit is contained in:
parent
910886f8b5
commit
b6a68fe35a
@ -217,7 +217,6 @@ class UserHandler(
|
|||||||
internal fun isActive(value: Boolean, status: IData<IStreamInfo?>) {
|
internal fun isActive(value: Boolean, status: IData<IStreamInfo?>) {
|
||||||
if(value) {
|
if(value) {
|
||||||
CoroutineScope(Dispatchers.Default).launch {
|
CoroutineScope(Dispatchers.Default).launch {
|
||||||
if(!_isActive) {
|
|
||||||
logger.info("${user.username} is live.")
|
logger.info("${user.username} is live.")
|
||||||
|
|
||||||
logger.info("ChzzkChat connecting... ${channel.channelName} - ${channel.channelId}")
|
logger.info("ChzzkChat connecting... ${channel.channelName} - ${channel.channelId}")
|
||||||
@ -225,6 +224,7 @@ class UserHandler(
|
|||||||
|
|
||||||
streamStartTime = status.content?.openDate?.let { convertChzzkDateToLocalDateTime(it) }
|
streamStartTime = status.content?.openDate?.let { convertChzzkDateToLocalDateTime(it) }
|
||||||
|
|
||||||
|
if(!_isActive) {
|
||||||
_isActive = true
|
_isActive = true
|
||||||
when(TimerConfigService.getConfig(UserService.getUser(channel.channelId)!!)?.option) {
|
when(TimerConfigService.getConfig(UserService.getUser(channel.channelId)!!)?.option) {
|
||||||
TimerType.UPTIME.value -> dispatcher.post(
|
TimerType.UPTIME.value -> dispatcher.post(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user