Fix nslookup
This commit is contained in:
2 files changed
+1
-5
No files matched your search
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user