PingAndList can ping now but not just list
This commit is contained in:
@ -6,9 +6,9 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
resp, err := bot.PingAndList("play.miaoscraft.cn", 25565)
|
||||
resp, delay, err := bot.PingAndList("play.miaoscraft.cn", 25565)
|
||||
if err != nil {
|
||||
log.Fatalf("ping and list server fail: %v", err)
|
||||
}
|
||||
log.Println("Status:" + resp)
|
||||
log.Println("Status:"+string(resp), "\nDealy:", delay)
|
||||
}
|
||||
|
Reference in New Issue
Block a user