/* * 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.json") { val ncmAPI get() = this.read().ncmAPI val wsAddress get() = this.read().wsAddress val wsPort get() = this.read().port val accessToken get() = this.read().accessToken val wsType get() = this.read().wsType val listeningGroups get() = this.read().listeningGroups val qweatherKey get() = this.read().qweatherKey val githubKey get() = this.read().githubKey val imageType get() = this.read().imageType val openAIAPIHost get() = this.read().openAIAPIHost val openAIAPIKey get() = this.read().openAIAPIKey val smtpHost get() = this.read().smtpHost val smtpPort get() = this.read().smtpPort val smtpUser get() = this.read().smtpUser val smtpPassword get() = this.read().smtpPassword val smtpFromAddress get() = this.read().smtpFromAddress val admins get() = this.read().admins val enableAntiRevoke get() = this.read().enableAntiRevoke }