mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-06-09 07:18:22 +00:00
commit
8d50d1c3aa
@ -161,19 +161,24 @@ class UserHandler(
|
||||
streamStartTime = status.content?.openDate?.let { convertChzzkDateToLocalDateTime(it) }
|
||||
|
||||
CoroutineScope(Dispatchers.Default).launch {
|
||||
if(!_isActive) {
|
||||
when(TimerConfigService.getConfig(UserService.getUser(channel.channelId)!!)?.option) {
|
||||
TimerType.UPTIME.value -> dispatcher.post(TimerEvent(
|
||||
TimerType.UPTIME.value -> dispatcher.post(
|
||||
TimerEvent(
|
||||
channel.channelId,
|
||||
TimerType.UPTIME,
|
||||
getUptime(streamStartTime!!)
|
||||
))
|
||||
else -> dispatcher.post(TimerEvent(
|
||||
)
|
||||
)
|
||||
|
||||
else -> dispatcher.post(
|
||||
TimerEvent(
|
||||
channel.channelId,
|
||||
TimerType.REMOVE,
|
||||
""
|
||||
))
|
||||
)
|
||||
)
|
||||
}
|
||||
if(!_isActive) {
|
||||
delay(5000L)
|
||||
try {
|
||||
listener.sendChat("${user.username} 님! 오늘도 열심히 방송하세요!")
|
||||
|
Loading…
x
Reference in New Issue
Block a user