mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-06-09 07:18:22 +00:00
if stream end, send message and can't use commands.(live image url fix)
This commit is contained in:
parent
e9a2e6b918
commit
a9aa5188f9
@ -105,6 +105,7 @@ class UserHandler(
|
||||
}
|
||||
|
||||
override fun onChat(msg: ChatMessage) {
|
||||
if(!_isActive) return
|
||||
messageHandler.handle(msg, user)
|
||||
}
|
||||
|
||||
@ -158,9 +159,13 @@ class UserHandler(
|
||||
.setEmbeds(embed.build())
|
||||
.build()
|
||||
).queue()
|
||||
|
||||
listener.sendChat("${user.username} 님의 방송이 감지되었습니다.")
|
||||
}
|
||||
} else {
|
||||
logger.info("${user.username} is offline.")
|
||||
|
||||
listener.sendChat("${user.username} 님! 방송 수고하셨습니다.")
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user