mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-08-07 12:51:13 +00:00
debug DiscordGuildCache
- avoid ratelimit.
This commit is contained in:
@@ -4,6 +4,7 @@ import applicationHttpClient
|
||||
import io.ktor.client.call.*
|
||||
import io.ktor.client.request.*
|
||||
import io.ktor.http.*
|
||||
import kotlinx.coroutines.delay
|
||||
import kotlinx.serialization.Serializable
|
||||
import space.mori.chzzk_bot.webserver.DiscordGuildListAPI
|
||||
import space.mori.chzzk_bot.webserver.dotenv
|
||||
@@ -57,6 +58,7 @@ object DiscordGuildCache {
|
||||
)
|
||||
}
|
||||
lastGuildId = guilds.last().id
|
||||
delay(300)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user