1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-04-27 13:48:56 +08:00
2014-06-07 20:57:51 -07:00

24 lines
323 B
Go

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