2024-08-27 19:15:47 +08:00
|
|
|
/*
|
|
|
|
|
* Copyright © 2024 RTAkland
|
|
|
|
|
* Author: RTAkland
|
|
|
|
|
* Date: 2024/8/27
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
package cn.rtast.fancybot
|
|
|
|
|
|
2024-08-30 14:24:46 +08:00
|
|
|
import cn.rtast.fancybot.entity.Config
|
2024-09-14 20:24:54 +08:00
|
|
|
import cn.rtast.fancybot.entity.enums.ImageType
|
2024-08-30 15:05:51 +08:00
|
|
|
import cn.rtast.fancybot.entity.enums.WSType
|
2024-08-27 19:15:47 +08:00
|
|
|
import com.google.gson.Gson
|
|
|
|
|
import com.google.gson.GsonBuilder
|
|
|
|
|
|
|
|
|
|
val gson: Gson = GsonBuilder()
|
|
|
|
|
.setPrettyPrinting()
|
|
|
|
|
.disableHtmlEscaping()
|
|
|
|
|
.create()
|
2024-08-30 14:24:46 +08:00
|
|
|
|
|
|
|
|
const val ROOT_PATH = "./data"
|
|
|
|
|
|
|
|
|
|
val DEFAULT_CONFIG = Config(
|
2024-08-30 15:05:51 +08:00
|
|
|
ncmAPI = "https://ncm.rtast.cn",
|
|
|
|
|
wsAddress = "ws://127.0.0.1",
|
|
|
|
|
wsType = WSType.Client,
|
|
|
|
|
accessToken = "114514",
|
2024-09-03 21:38:50 +08:00
|
|
|
port = 6760,
|
2024-09-04 20:01:09 +08:00
|
|
|
listeningGroups = listOf(114514, 1919810),
|
2024-09-12 15:43:44 +08:00
|
|
|
qweatherKey = "114514",
|
2024-09-14 20:24:54 +08:00
|
|
|
githubKey = "1919810",
|
2024-09-15 13:27:14 +08:00
|
|
|
imageType = ImageType.PNG,
|
|
|
|
|
openAIAPIHost = "https://api.moonshot.cn",
|
2024-09-17 22:37:42 +08:00
|
|
|
openAIAPIKey = "114514",
|
|
|
|
|
smtpHost = "127.0.0.1",
|
|
|
|
|
smtpPort = 25,
|
|
|
|
|
smtpUser = "114514",
|
|
|
|
|
smtpPassword = "1919810",
|
|
|
|
|
smtpFromAddress = "fancybot@repo.rtast.cn",
|
|
|
|
|
admins = listOf(3458671395L)
|
2024-08-31 22:37:12 +08:00
|
|
|
)
|