Fix error in example
This commit is contained in:
parent
11262956ab
commit
d09b778c04
|
@ -18,7 +18,7 @@ func main() {
|
|||
hello := gbot.AddRobot(gobot.NewRobot("hello"))
|
||||
|
||||
hello.AddCommand("hi_there", func(params map[string]interface{}) interface{} {
|
||||
return fmt.Sprintf("This command is attached to the robot %v", hello.Name())
|
||||
return fmt.Sprintf("This command is attached to the robot %v", hello.Name)
|
||||
})
|
||||
|
||||
gbot.Start()
|
||||
|
|
Loading…
Reference in New Issue