mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-06-09 07:18:22 +00:00
commit
5fb25089d5
@ -222,12 +222,12 @@ class UserHandler(
|
|||||||
CoroutineScope(Dispatchers.Default).launch {
|
CoroutineScope(Dispatchers.Default).launch {
|
||||||
logger.info("${user.username} is live.")
|
logger.info("${user.username} is live.")
|
||||||
|
|
||||||
if(!_isActive) {
|
|
||||||
logger.info("ChzzkChat connecting... ${channel.channelName} - ${channel.channelId}")
|
logger.info("ChzzkChat connecting... ${channel.channelName} - ${channel.channelId}")
|
||||||
listener.connectAsync().await()
|
listener.connectAsync().await()
|
||||||
|
|
||||||
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