chore: format code

This commit is contained in:
2024-09-05 16:19:16 +08:00
parent 790c48387e
commit 2a887cd9a3
1 file changed
+2 -8
@@ -23,17 +23,11 @@ class WeatherCommand : BaseCommand() {
val locationName = args.first() val locationName = args.first()
val lookupLocationId = Http.get<Geo>( val lookupLocationId = Http.get<Geo>(
"https://geoapi.qweather.com/v2/city/lookup", "https://geoapi.qweather.com/v2/city/lookup",
mapOf( mapOf("location" to locationName, "key" to configManager.qweatherKey)
"location" to locationName,
"key" to configManager.qweatherKey
)
).location.first().id ).location.first().id
val weather = Http.get<Weather>( val weather = Http.get<Weather>(
"https://devapi.qweather.com/v7/weather/now", "https://devapi.qweather.com/v7/weather/now",
mapOf( mapOf("location" to lookupLocationId, "key" to configManager.qweatherKey)
"location" to lookupLocationId,
"key" to configManager.qweatherKey
)
) )
val msg = MessageChain.Builder() val msg = MessageChain.Builder()
.addAt(message.sender.userId) .addAt(message.sender.userId)