File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -26,13 +26,13 @@ import (
26
26
)
27
27
28
28
func main () {
29
- _ = wechaty.NewWechaty ().
30
- OnScan (func (qrCode string , status schemas.ScanStatus , data string ) {
31
- fmt.Printf (" Scan QR Code to login: %s \n https://wechaty.github.io/qrcode/%s \n " , status, qrCode)
32
- }).
33
- OnLogin (user *user.ContactSelf ) { fmt.Printf (" User %s logined\n " , user) }).
34
- OnMessage (message *user.Message ) { fmt.Printf (" Message: %s \n " , message) }).
35
- Start ()
29
+ _ = wechaty.NewWechaty ().
30
+ OnScan (func (ctx *wechaty. Context , qrCode string , status schemas.ScanStatus , data string ) {
31
+ fmt.Printf (" Scan QR Code to login: %s \n https://wechaty.github.io/qrcode/%s \n " , status, qrCode)
32
+ }).
33
+ OnLogin (func (ctx *wechaty. Context , user *user.ContactSelf ) { fmt.Printf (" User %s logined\n " , user) }).
34
+ OnMessage (func (ctx *wechaty. Context , message *user.Message ) { fmt.Printf (" Message: %s \n " , message) }).
35
+ Start ()
36
36
}
37
37
```
38
38
@@ -51,7 +51,7 @@ make install
51
51
Get a Token for your Bot first. Learn more from our [ Wechaty Developers Program] ( https://github.com/wechaty/wechaty/wiki/Wechaty-Developer-Program )
52
52
53
53
``` sh
54
- export WECHATY_PUPPET_HOSTIE_TOKEN =your_token_at_here
54
+ export WECHATY_PUPPET_SERVICE_TOKEN =your_token_at_here
55
55
56
56
make bot
57
57
```
You can’t perform that action at this time.
0 commit comments