1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-04-27 13:48:56 +08:00
2014-07-08 18:36:14 -07:00

23 lines
290 B
Go

package main
import (
"fmt"
"github.com/hybridgroup/gobot"
"time"
)
func main() {
gbot := gobot.NewGobot()
robot := gobot.NewRobot(
"hello",
func() {
gobot.Every(500*time.Millisecond, func() { fmt.Println("Greetings human") })
},
)
gbot.AddRobot(robot)
gbot.Start()
}