forked from git.klmp200.net/ALFRED
It says hello in the right chat now
This commit is contained in:
parent
8ea64a2f64
commit
9f1f5f527f
@ -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
|
||||||
|
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user