Fix nslookup

This commit is contained in:
2025-05-22 01:08:19 +08:00
parent 11e65d99ba
commit 93a2bf949a
2 files changed
+1 -5

No files matched your search

-4
View File
@@ -69,7 +69,3 @@ application {
mainClass = "cn.rtast.fancybot.FancyBotKt"
applicationName = "FancyBot"
}
kotlin {
jvmToolchain(17)
}
@@ -76,7 +76,7 @@ class NslookupCommand : BaseCommand() {
.addNewLine()
.addText("$host -> $ip")
.addNewLine()
.addText("国家: ${geo.country} 地区: ${geo.region} 城市: ${geo.city} | 所属组织: ${geo.org}")
.addText("国家: ${if (geo.country == "HK") "CN" else geo.country} 地区: ${geo.region} 城市: ${geo.city} | 所属组织: ${geo.org}")
.build()
messages.add(msg)
}