chore: improve code and add image type option

This commit is contained in:
2024-09-14 20:24:54 +08:00
parent 86581e7998
commit eb65a89425
8 files changed
+27 -15

No files matched your search

@@ -7,6 +7,7 @@
package cn.rtast.fancybot.entity
import cn.rtast.fancybot.entity.enums.ImageType
import cn.rtast.fancybot.entity.enums.WSType
data class Config(
@@ -18,4 +19,5 @@ data class Config(
val listeningGroups: List<Long>,
val qweatherKey: String,
val githubKey: String,
val imageType: ImageType,
)
@@ -0,0 +1,12 @@
/*
* Copyright © 2024 RTAkland
* Author: RTAkland
* Date: 2024/9/14
*/
package cn.rtast.fancybot.entity.enums
enum class ImageType(val typeName: String) {
PNG("png"), JPG("jpg")
}