@@ -127,7 +127,7 @@ func main() {
127127
128128 definition := &slacker.CommandDefinition {
129129 Description: " Ping!" ,
130- Example : " ping" ,
130+ Examples : [] string { " ping" } ,
131131 Handler: func (botCtx slacker.BotContext , request slacker.Request , response slacker.ResponseWriter ) {
132132 response.Reply (" pong" , slacker.WithThreadReply (true ))
133133 },
@@ -165,7 +165,7 @@ func main() {
165165
166166 bot.Command (" echo {word}" , &slacker.CommandDefinition {
167167 Description: " Echo a word!" ,
168- Example : " echo hello" ,
168+ Examples : [] string { " echo hello" } ,
169169 Handler: func (botCtx slacker.BotContext , request slacker.Request , response slacker.ResponseWriter ) {
170170 word := request.Param (" word" )
171171 response.Reply (word)
@@ -174,7 +174,7 @@ func main() {
174174
175175 bot.Command (" say <sentence>" , &slacker.CommandDefinition {
176176 Description: " Say a sentence!" ,
177- Example : " say hello there everyone!" ,
177+ Examples : [] string { " say hello there everyone!" } ,
178178 Handler: func (botCtx slacker.BotContext , request slacker.Request , response slacker.ResponseWriter ) {
179179 sentence := request.Param (" sentence" )
180180 response.Reply (sentence)
@@ -212,7 +212,7 @@ func main() {
212212
213213 definition := &slacker.CommandDefinition {
214214 Description: " Repeat a word a number of times!" ,
215- Example : " repeat hello 10" ,
215+ Examples : [] string { " repeat hello 10" } ,
216216 Handler: func (botCtx slacker.BotContext , request slacker.Request , response slacker.ResponseWriter ) {
217217 word := request.StringParam (" word" , " Hello!" )
218218 number := request.IntegerParam (" number" , 1 )
@@ -755,7 +755,7 @@ func main() {
755755
756756 bot.Command (" echo {word}" , &slacker.CommandDefinition {
757757 Description: " Echo a word!" ,
758- Example : " echo hello" ,
758+ Examples : [] string { " echo hello" } ,
759759 Handler: func (botCtx slacker.BotContext , request slacker.Request , response slacker.ResponseWriter ) {
760760 word := request.Param (" word" )
761761 response.Reply (word)
0 commit comments