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