if account deleted?

This commit is contained in:
dalbodeule 2025-03-31 18:43:12 +09:00
parent 22d97c6604
commit 8ab1dc585e
No known key found for this signature in database
GPG Key ID: EFA860D069C9FA65

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 ->