init
This commit is contained in:
21
cmd/daze/daze.go
Normal file
21
cmd/daze/daze.go
Normal 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)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user