1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-04-27 13:48:56 +08:00
Adrian Zankich 244ec0a0cf fmt examples
2014-07-10 17:21:21 -07:00

24 lines
291 B
Go

package main
import (
"fmt"
"time"
"github.com/hybridgroup/gobot"
)
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()
}