mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-08-07 12:51:13 +00:00
Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
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} 님! 방송 수고하셨습니다.")
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user