mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-06-09 07:18:22 +00:00
asdf
This commit is contained in:
parent
9ab004d646
commit
40f1df7ba6
@ -131,9 +131,9 @@ val server = embeddedServer(Netty, port = 8080, ) {
|
|||||||
}.map { it.id }
|
}.map { it.id }
|
||||||
))
|
))
|
||||||
DiscordGuildCache.addGuild(guilds.associate {
|
DiscordGuildCache.addGuild(guilds.associate {
|
||||||
it.id to CachedGuilds(
|
println("${it.id} ${it.name}")
|
||||||
Guild(it.id, it.name, it.icon, it.banner)
|
|
||||||
)
|
it.id to Guild(it.id, it.name, it.icon, it.banner)
|
||||||
})
|
})
|
||||||
|
|
||||||
redirects[principal.state]?.let { redirect ->
|
redirects[principal.state]?.let { redirect ->
|
||||||
|
@ -70,8 +70,10 @@ object DiscordGuildCache {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun addGuild(guilds: Map<String, CachedGuilds>) {
|
fun addGuild(guilds: Map<String, Guild>) {
|
||||||
cache.putAll(guilds)
|
cache.putAll(guilds.map {
|
||||||
|
it.key to CachedGuilds(it.value, Instant.now())
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user