It says hello in the right chat now

This commit is contained in:
klmp200 2018-07-23 17:26:15 +02:00
parent 8ea64a2f64
commit 9f1f5f527f
No known key found for this signature in database
GPG Key ID: E7245548C53F904B
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -2,7 +2,7 @@
* @Author: Bartuccio Antoine
* @Date: 2018-07-23 15:24:22
* @Last Modified by: klmp200
* @Last Modified time: 2018-07-23 16:05:01
* @Last Modified time: 2018-07-23 17:25:09
*/
package main
@ -28,7 +28,7 @@ func main() {
}
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")