mirror of
https://git.klmp200.net/ALFRED/ALFRED.git
synced 2025-04-11 10:14:41 +02:00
It says hello in the right chat now
This commit is contained in:
parent
8ea64a2f64
commit
9f1f5f527f
2 changed files with 3 additions and 3 deletions
|
@ -2,7 +2,7 @@ pipeline:
|
|||
build:
|
||||
image: golang
|
||||
commands:
|
||||
- go get -d ./...
|
||||
- go get -v -d ./...
|
||||
- go build .
|
||||
publish:
|
||||
image: plugins/docker
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Add table
Reference in a new issue