2024-08-30 14:24:46 +08:00
|
|
|
/*
|
|
|
|
|
* Copyright © 2024 RTAkland
|
|
|
|
|
* Author: RTAkland
|
|
|
|
|
* Date: 2024/8/30
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
package cn.rtast.fancybot.util.file
|
|
|
|
|
|
|
|
|
|
import cn.rtast.fancybot.entity.Config
|
|
|
|
|
import cn.rtast.fancybot.util.JsonFileHandler
|
|
|
|
|
|
|
|
|
|
class ConfigManager : JsonFileHandler<Config>("config.json") {
|
2024-08-30 15:05:51 +08:00
|
|
|
val ncmAPI get() = this.read<Config>().ncmAPI
|
|
|
|
|
val wsAddress get() = this.read<Config>().wsAddress
|
|
|
|
|
val wsPort get() = this.read<Config>().port
|
|
|
|
|
val accessToken get() = this.read<Config>().accessToken
|
|
|
|
|
val wsType get() = this.read<Config>().wsType
|
2024-09-03 21:38:50 +08:00
|
|
|
val listeningGroups get() = this.read<Config>().listeningGroups
|
2024-09-04 20:01:09 +08:00
|
|
|
val qweatherKey get() = this.read<Config>().qweatherKey
|
2024-09-12 15:43:44 +08:00
|
|
|
val githubKey get() = this.read<Config>().githubKey
|
2024-08-30 14:24:46 +08:00
|
|
|
}
|