This commit is contained in:
JunDao
2019-05-01 15:22:42 +08:00
parent 2b58eb07b5
commit 0d436609ce
21 changed files with 91491 additions and 0 deletions

14
cmd/ping/ping.go Normal file
View File

@ -0,0 +1,14 @@
package main
import (
bot "github.com/Tnze/gomcbot"
"log"
)
func main() {
resp, err := bot.PingAndList("play.miaoscraft.cn", 25565)
if err != nil {
log.Fatalf("ping and list server fail: %v", err)
}
log.Println("Status:" + resp)
}