Files
FancyBot/src/main/kotlin/cn/rtast/fancybot/Const.kt
T

42 lines
1.0 KiB
Kotlin
Raw Normal View History

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
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",
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",
2024-09-18 13:06:23 +08:00
admins = listOf(3458671395L),
enableAntiRevoke = true
2024-08-31 22:37:12 +08:00
)