feat: add more commands about minecraft

This commit is contained in:
2024-10-09 23:14:41 +08:00
parent c280c02a4e
commit f34e12b3d2
13 files changed
+414 -315

No files matched your search

@@ -0,0 +1,26 @@
/*
* Copyright © 2024 RTAkland
* Author: RTAkland
* Date: 2024/10/9
*/
package cn.rtast.fancybot.entity.mc
import cn.rtast.fancybot.enums.mc.MCVersionType
data class MCVersion(
val latest: Latest,
val versions: List<Version>
) {
data class Latest(
val release: String,
val snapshot: String
)
data class Version(
val id: String,
val type: MCVersionType,
val releaseTime: String
)
}
@@ -0,0 +1,22 @@
/*
* Copyright © 2024 RTAkland
* Author: RTAkland
* Date: 2024/10/9
*/
package cn.rtast.fancybot.entity.mc
data class MCWikiSearchResponse(
val pages: List<Page>
) {
data class Page(
val id: Int,
val title: String,
val thumbnail: Thumbnail?
)
data class Thumbnail(
val url: String
)
}