It says hello in the right chat now
the build was successful Details

This commit is contained in:
Antoine Bartuccio 2018-07-23 17:26:15 +02:00
parent 8ea64a2f64
commit 9f1f5f527f
Signed by: klmp200
GPG Key ID: E7245548C53F904B
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@ pipeline:
build: build:
image: golang image: golang
commands: commands:
- go get -d ./... - go get -v -d ./...
- go build . - go build .
publish: publish:
image: plugins/docker image: plugins/docker

View File

@ -2,7 +2,7 @@
* @Author: Bartuccio Antoine * @Author: Bartuccio Antoine
* @Date: 2018-07-23 15:24:22 * @Date: 2018-07-23 15:24:22
* @Last Modified by: klmp200 * @Last Modified by: klmp200
* @Last Modified time: 2018-07-23 16:05:01 * @Last Modified time: 2018-07-23 17:25:09
*/ */
package main package main
@ -28,7 +28,7 @@ func main() {
} }
b.Handle("/hello", func(m *tb.Message) { b.Handle("/hello", func(m *tb.Message) {
b.Send(m.Sender, "Bonjour monsieur") b.Send(m.Chat, "Bonjour "+m.Sender.Username)
}) })
log.Println("Starting bot") log.Println("Starting bot")