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"
|
mainClass = "cn.rtast.fancybot.FancyBotKt"
|
||||||
applicationName = "FancyBot"
|
applicationName = "FancyBot"
|
||||||
}
|
}
|
||||||
|
|
||||||
kotlin {
|
|
||||||
jvmToolchain(17)
|
|
||||||
}
|
|
||||||
@@ -76,7 +76,7 @@ class NslookupCommand : BaseCommand() {
|
|||||||
.addNewLine()
|
.addNewLine()
|
||||||
.addText("$host -> $ip")
|
.addText("$host -> $ip")
|
||||||
.addNewLine()
|
.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()
|
.build()
|
||||||
messages.add(msg)
|
messages.add(msg)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user