mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-06-09 07:18:22 +00:00
commit
c2bb653ee1
@ -40,7 +40,11 @@ object ChzzkHandler {
|
|||||||
botUid = chzzk.loggedUser.userId
|
botUid = chzzk.loggedUser.userId
|
||||||
UserService.getAllUsers().map {
|
UserService.getAllUsers().map {
|
||||||
if(!it.isDisabled)
|
if(!it.isDisabled)
|
||||||
|
try {
|
||||||
chzzk.getChannel(it.token)?.let { token -> addUser(token, it) }
|
chzzk.getChannel(it.token)?.let { token -> addUser(token, it) }
|
||||||
|
} catch(e: Exception) {
|
||||||
|
logger.info("Exception: ${it.token}(${it.username}) not found. ${e.stackTraceToString()}")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
handlers.forEach { handler ->
|
handlers.forEach { handler ->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user