Rename config save name 'ManagersConfig' to 'Managers'

This commit is contained in:
Him188 2020-08-27 21:45:19 +08:00
parent 7d51009361
commit 1414ff35e7

View File

@ -45,7 +45,10 @@ internal object BotManagerImpl : BotManager {
}
}
@ValueName("Managers")
internal object ManagersConfig : AutoSavePluginConfig() {
override val saveName: String
get() = "Managers"
private val managers by value<MutableMap<Long, MutableSet<Long>>>().withEmptyDefault()
.mapKeys(Bot::getInstance, Bot::id)