feat: add weather command

This commit is contained in:
2024-09-04 20:01:09 +08:00
parent bba8a99658
commit 7ce76aa0d2
9 files changed
+111 -15

No files matched your search

@@ -15,5 +15,6 @@ data class Config(
val wsAddress: String,
val accessToken: String,
val port: Int,
val listeningGroups: List<Long>
val listeningGroups: List<Long>,
val qweatherKey: String
)
@@ -0,0 +1,16 @@
/*
* Copyright © 2024 RTAkland
* Author: RTAkland
* Date: 2024/9/4
*/
package cn.rtast.fancybot.entity.weather
data class Geo(
val location: List<Location>
) {
data class Location(
val id: String
)
}
@@ -0,0 +1,23 @@
/*
* Copyright © 2024 RTAkland
* Author: RTAkland
* Date: 2024/9/4
*/
package cn.rtast.fancybot.entity.weather
data class Weather(
val now: Now,
val refer: Refer
) {
data class Now(
val temp: String,
val text: String,
val windDir: String
)
data class Refer(
val sources: List<String>
)
}