Merge pull request #124 from dalbodeule/develop

if account deleted?
This commit is contained in:
JinU Choi 2025-03-31 18:47:13 +09:00 committed by GitHub
commit c2bb653ee1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,7 +40,11 @@ object ChzzkHandler {
botUid = chzzk.loggedUser.userId
UserService.getAllUsers().map {
if(!it.isDisabled)
chzzk.getChannel(it.token)?.let { token -> addUser(token, it) }
try {
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 ->