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

21
cmd/daze/daze.go Normal file
View File

@ -0,0 +1,21 @@
package main
import (
bot "github.com/Tnze/gomcbot"
"log"
)
func main() {
c := bot.NewClient()
err := c.JoinServer("localhost", 25565)
if err != nil {
log.Fatal(err)
}
log.Println("Login success")
err = c.HandleGame()
if err != nil {
log.Fatal(err)
}
}