README.md 14.5 KB
Newer Older
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
1
[![Wechaty](https://raw.githubusercontent.com/wechaty/wechaty/master/image/wechaty-logo-en.png)](https://github.com/wechaty/wechaty)
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
2

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
3
# Wechaty 
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
4

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
5
## Connecting ChatBots.
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
6

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
7
Wechaty is a Bot Framework for Wechat **Personal** Account which can help you create a bot in 6 lines of javascript by easy to use API, with cross-platform support include [Linux](https://travis-ci.org/wechaty/wechaty), [Windows](https://ci.appveyor.com/project/wechaty/wechaty), [Darwin(OSX/Mac)](https://travis-ci.org/wechaty/wechaty) and [Docker](https://circleci.com/gh/wechaty/wechaty).
8

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
9
[![Join the chat at https://gitter.im/zixia/wechaty](https://badges.gitter.im/zixia/wechaty.svg)](https://gitter.im/zixia/wechaty?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![node](https://img.shields.io/node/v/wechaty.svg?maxAge=604800)](https://nodejs.org/) [![Repo Size](https://reposs.herokuapp.com/?path=wechaty/wechaty)](https://github.com/wechaty/wechaty)
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
10

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
11 12 13
:octocat: <https://github.com/wechaty/wechaty>  
:beetle: <https://github.com/wechaty/wechaty/issues>  
:book: <https://github.com/wechaty/wechaty/wiki>  
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
14
:whale: <https://hub.docker.com/r/zixia/wechaty>  
15 16

## Voice of the Developer
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
17

Huan (李卓桓)'s avatar
doc  
Huan (李卓桓) 已提交
18 19
> "The best wechat SDK I have seen in Github!" [link](https://github.com/wechaty/wechaty/issues/8#issuecomment-228971491)  
> -- @JasLin, BotWave CTO
Huan (李卓桓)'s avatar
doc  
Huan (李卓桓) 已提交
20

Huan (李卓桓)'s avatar
doc  
Huan (李卓桓) 已提交
21 22
> "Wechaty简单的接口...和Docker化的封装...绝对是一个不错的选择" [link](http://mp.weixin.qq.com/s/o-4VMcAMz0K8yJVdNaUXow)  
> -- @shevyan, Ghost Cloud CEO
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
23

Huan (李卓桓)'s avatar
doc  
Huan (李卓桓) 已提交
24 25
> "Wechaty is great." [link](https://github.com/wechaty/wechaty/issues/36#issuecomment-251708382)  
> -- @Samurais, SnapLingo Director of Engineering
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
26

Huan (李卓桓)'s avatar
doc  
Huan (李卓桓) 已提交
27 28
> "最好的微信开发库" [link](http://weibo.com/3296245513/Ec4iNp9Ld?type=comment)  
> -- @Jarvis, Baidu
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
29

Huan (李卓桓)'s avatar
doc  
Huan (李卓桓) 已提交
30 31 32
> "Wechaty让运营人员更多的时间思考如何进行活动策划、留存用户,商业变现" [link](http://mp.weixin.qq.com/s/dWHAj8XtiKG-1fIS5Og79g)  
> -- @lijiarui

Huan (李卓桓)'s avatar
doc  
Huan (李卓桓) 已提交
33
> "Wechaty library fantastic!" [link](https://github.com/wechaty/wechaty/issues/9) - @ccaapton 
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
34

Huan (李卓桓)'s avatar
doc  
Huan (李卓桓) 已提交
35
> "it's quite cool!" [link](https://github.com/wechaty/wechaty/issues/4) - @ak5
36

Huan (李卓桓)'s avatar
doc  
Huan (李卓桓) 已提交
37
> "Thanks for great SDK" [link](https://github.com/wechaty/wechaty/issues/57) - @naishstar
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
38

Huan (李卓桓)'s avatar
doc  
Huan (李卓桓) 已提交
39
# The World's Shortest ChatBot Code: 6 lines of JavaScript
Huan (李卓桓)'s avatar
doc  
Huan (李卓桓) 已提交
40

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
41
```javascript
42
const { Wechaty } = require('wechaty')
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
43

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
44
Wechaty.instance() // Singleton
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
45
.on('scan', (url, code) => console.log(`Scan QR Code to login: ${code}\n${url}`))
46 47
.on('login',       user => console.log(`User ${user} logined`))
.on('message',  message => console.log(`Message: ${message}`))
48
.init()
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
49 50
```

Huan (李卓桓)'s avatar
doc  
Huan (李卓桓) 已提交
51
This bot can log all message to console.
Huan (李卓桓)'s avatar
doc  
Huan (李卓桓) 已提交
52

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
53
You can find more example from [Wiki](https://github.com/wechaty/wechaty/wiki/Example) and [Example Directory](https://github.com/wechaty/wechaty/blob/master/example/).
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
54

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
55 56
# Run

Huan (李卓桓)'s avatar
doc  
Huan (李卓桓) 已提交
57 58 59 60 61 62
Let's say, you have saved the above six lines javascript example to `mybot.js`.

We have two options to run wechaty:

1. Docker
1. NPM
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
63

Huan (李卓桓)'s avatar
doc  
Huan (李卓桓) 已提交
64 65 66
## Docker

[![Docker Pulls](https://img.shields.io/docker/pulls/zixia/wechaty.svg?maxAge=2592000)](https://hub.docker.com/r/zixia/wechaty/) [![Docker Stars](https://img.shields.io/docker/stars/zixia/wechaty.svg?maxAge=2592000)](https://hub.docker.com/r/zixia/wechaty/) [![Docker Layers](https://images.microbadger.com/badges/image/zixia/wechaty.svg)](https://microbadger.com/#/images/zixia/wechaty)
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
67

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
68 69
The **best practice** to use Wechaty is run by docker, becasue it's not only the most easy way to get start, but also protect you out of the troubles of dependencies problems. 

70
```shell
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
71
$ docker run -ti --rm --volume="$(pwd)":/bot zixia/wechaty mybot.js
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
72 73
```

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
74
> Wechaty Docker support to run TypeScript directly as well: just write in TypeScript and save to `mybot.ts`.
75

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
76
Get to know more about Wechaty Docker at [Wiki:Docker](https://github.com/wechaty/wechaty/wiki/Docker).
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
77

Huan (李卓桓)'s avatar
doc  
Huan (李卓桓) 已提交
78
## NPM
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
79 80

[![NPM Version](https://badge.fury.io/js/wechaty.svg)](https://badge.fury.io/js/wechaty) [![Downloads][downloads-image]][downloads-url]
Huan (李卓桓)'s avatar
doc  
Huan (李卓桓) 已提交
81

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
82
Get to know more about NPM at [Wiki:NPM](https://github.com/wechaty/wechaty/wiki/NPM)
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
83

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
84
# API Reference
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
85

ruiruibupt's avatar
ruiruibupt 已提交
86
## [Wechaty Event](https://github.com/wechaty/wechaty/wiki/API#event)
87

ruiruibupt's avatar
ruiruibupt 已提交
88 89 90 91 92 93 94 95 96
1. [scan](https://github.com/wechaty/wechaty/wiki/API#1-event-scan) Emit when the bot needs to show you a QR Code for scanning
2. [login](https://github.com/wechaty/wechaty/wiki/API#2-event-login) Emit when bot login full successful.
3. [logout](https://github.com/wechaty/wechaty/wiki/API#3-event-logout) Emit when bot detected log out.
4. [message](https://github.com/wechaty/wechaty/wiki/API#4-event-message) Emit when there's a new message.
5. [error](https://github.com/wechaty/wechaty/wiki/API#5-event-error) Emit when there's an error occurred.
6. [friend](https://github.com/wechaty/wechaty/wiki/API#6-event-friend) Emit when got a new friend request, or friendship is confirmed.
7. [room-join](https://github.com/wechaty/wechaty/wiki/API#7-event-room-join) Emit when someone join the room
8. [room-leave](https://github.com/wechaty/wechaty/wiki/API#8-event-room-leave) Emit when someone leave the room
9. [room-topic](https://github.com/wechaty/wechaty/wiki/API#9-event-room-topic) Emit when someone change the room's topic
ruiruibupt's avatar
ruiruibupt 已提交
97

ruiruibupt's avatar
ruiruibupt 已提交
98
## [Wechaty](https://github.com/wechaty/wechaty/wiki/API#wechaty-class)
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
99

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
100 101
1. [instance(setting: PuppetSetting): Promise&lt;Wechaty&gt;](https://github.com/wechaty/wechaty/wiki/API#wechatyinstanceprofilestring-wechaty) get the bot instance
2. [init(): Promise&lt;void&gt;](https://github.com/wechaty/wechaty/wiki/API#wechatyinit-wechaty) Initialize the bot
ruiruibupt's avatar
ruiruibupt 已提交
102 103
3. [send(message: Message): Promise&lt;void&gt;](https://github.com/wechaty/wechaty/wiki/API#wechatysendmessage-message-wechaty) send a message
4. [say(content: string): Promise&lt;void&gt;](https://github.com/wechaty/wechaty/wiki/API#wechatysaycontent-string) send message to filehelper, just for logging/reporting usage for your convenience
ruiruibupt's avatar
ruiruibupt 已提交
104

ruiruibupt's avatar
ruiruibupt 已提交
105
## [Message](https://github.com/wechaty/wechaty/wiki/API#message-class)
106

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
107 108
1. [from():Contact](https://github.com/wechaty/wechaty/wiki/API#1-messagefrom-contact) get the sender from a message
2. [from(contact:Contact):void](https://github.com/wechaty/wechaty/wiki/API#2-messagefromcontact-contact-void) set a sender to the message
ruiruibupt's avatar
ruiruibupt 已提交
109
4. [to():Contact](https://github.com/wechaty/wechaty/wiki/API#1-messageto-contact) get the destination of the message
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
110 111 112 113 114
5. [to(contact:Contact):void](https://github.com/wechaty/wechaty/wiki/API#2-messagetocontact-contact-void) set the destination as contact for the message
7. [content():string](https://github.com/wechaty/wechaty/wiki/API#1-messagecontent-string) get the content of the message
8. [content(content:string):string](https://github.com/wechaty/wechaty/wiki/API#2-messagecontentcontent-string-string) set the content for the message
9. [room():Room|null](https://github.com/wechaty/wechaty/wiki/API#1-messageroom-room--null) get the room from a message.
10. [room(room:Room):void](https://github.com/wechaty/wechaty/wiki/API#2-messageroomroom-room-void) set the room for a message.
ruiruibupt's avatar
ruiruibupt 已提交
115
12. [type():MsgType](https://github.com/wechaty/wechaty/wiki/API#messagetype-number) get the type of a Message.
ruiruibupt's avatar
ruiruibupt 已提交
116 117
13. [say(content:string):Promise](https://github.com/wechaty/wechaty/wiki/API#messagesaycontent-string-promise) reply a message to the sender.
14. [ready():Promise](https://github.com/wechaty/wechaty/wiki/API#messageready-promise) confirm get all the data needed, will be resolved when all message data is ready.
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
118
15. [self():boolean](https://github.com/wechaty/wechaty/wiki/API#messageselfmessage-message-boolean) check if a message is sent by self 
ruiruibupt's avatar
ruiruibupt 已提交
119

ruiruibupt's avatar
ruiruibupt 已提交
120
## [Contact](https://github.com/wechaty/wechaty/wiki/API#contact-class)
ruiruibupt's avatar
ruiruibupt 已提交
121 122 123 124

2. [name():string](https://github.com/wechaty/wechaty/wiki/API#contactname-string) get name from a contact
3. [remark():string](https://github.com/wechaty/wechaty/wiki/API#contactremark-string) get remark name from a contact
4. [remark(remark:string):Promise](https://github.com/wechaty/wechaty/wiki/API#contactremarkremark-string-promise) set remark name to a contact
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
125
5. [weixin():string](https://github.com/wechaty/wechaty/wiki/API#contactweixin-string) get weixin id from a contact
ruiruibupt's avatar
ruiruibupt 已提交
126 127 128
6. [star():boolean](https://github.com/wechaty/wechaty/wiki/API#contactstar-boolean) true for star friend, false for no star friend
7. [ready():Promise](https://github.com/wechaty/wechaty/wiki/API#contactready-promise) confirm get all the contact data needed, will be resolved when all data is ready
8. [say(content:string):Promise](https://github.com/wechaty/wechaty/wiki/API#contactsaycontent-string-promise) say content to a contact
ruiruibupt's avatar
ruiruibupt 已提交
129

130
## [Room](https://github.com/wechaty/wechaty/wiki/API#class-room)
Huan (李卓桓)'s avatar
doc #44  
Huan (李卓桓) 已提交
131

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
132 133
1. [say(content:string,replyTo:Contact|ContactArray):Promise](https://github.com/wechaty/wechaty/wiki/API#roomsaycontent-string-replyto-contactcontact-promise) say content inside Room.
2. [ready():Promise](https://github.com/wechaty/wechaty/wiki/API#roomready-promise) confirm get all the data needed, will be resolved when all data is ready
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
134
3. [refresh():Promise](https://github.com/wechaty/wechaty/wiki/API#roomrefresh-promise) reload data for Room
ruiruibupt's avatar
ruiruibupt 已提交
135

ruiruibupt's avatar
ruiruibupt 已提交
136
### [Room Event](https://github.com/wechaty/wechaty/wiki/API#room-events)
137

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
138 139 140
1. [join](https://github.com/wechaty/wechaty/wiki/API#event-join) Emit when someone join the room
2. [leave](https://github.com/wechaty/wechaty/wiki/API#event-leave) Emit when someone leave the room
3. [topic](https://github.com/wechaty/wechaty/wiki/API#event-topic) Emit when someone change the room topic
ruiruibupt's avatar
ruiruibupt 已提交
141

ruiruibupt's avatar
ruiruibupt 已提交
142 143 144
## [FriendRequest](https://github.com/wechaty/wechaty/wiki/API#class-friendrequest)

1. [hello:string](https://github.com/wechaty/wechaty/wiki/API#friendrequesthello-string) get content from friendrequest
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
145
2. [accept():void](https://github.com/wechaty/wechaty/wiki/API#friendrequestaccept-void) accept the friendrequest
ruiruibupt's avatar
ruiruibupt 已提交
146 147
3. [send(contact:Contact,hello:string):void](https://github.com/wechaty/wechaty/wiki/API#friendrequestsendcontact-contact-hello-string-void) send a new friend request

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
148 149
# Test

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
150
[![Linux/Mac Build Status](https://img.shields.io/travis/wechaty/wechaty.svg?label=Linux/Mac)](https://travis-ci.org/wechaty/wechaty) [![Windows Build status](https://img.shields.io/appveyor/ci/wechaty/wechaty/master.svg?label=Windows)](https://ci.appveyor.com/project/wechaty/wechaty) [![Docker CircleCI](https://img.shields.io/circleci/project/github/wechaty/wechaty.svg?label=Docker)](https://circleci.com/gh/wechaty/wechaty) [![Coverage Status](https://coveralls.io/repos/github/wechaty/wechaty/badge.svg?branch=master)](https://coveralls.io/github/wechaty/wechaty?branch=master) [![Known Vulnerabilities](https://snyk.io/test/github/wechaty/wechaty/badge.svg)](https://snyk.io/test/github/wechaty/wechaty)
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
151

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
152
Wechaty use [AVA](https://github.com/avajs/ava) for unit testing
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
153

Huan (李卓桓)'s avatar
doc  
Huan (李卓桓) 已提交
154
To test Wechaty, run:
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
155 156
```shell
npm test
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
157 158
```

Huan (李卓桓)'s avatar
doc  
Huan (李卓桓) 已提交
159
Get to know more about test from [Wiki:Test](https://github.com/wechaty/wechaty/wiki/Test)
Huan (李卓桓)'s avatar
doc  
Huan (李卓桓) 已提交
160

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
161
# Release Notes
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
162

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
163 164
* [Latest Release](https://github.com/wechaty/wechaty/releases/latest)(All releases [here](https://github.com/wechaty/wechaty/releases))
* [Changelog](https://github.com/wechaty/wechaty/blob/master/CHANGELOG.md)
Huan (李卓桓)'s avatar
readme  
Huan (李卓桓) 已提交
165

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
166
# Powered By Wechaty
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
167 168

[![Powered by Wechaty](https://img.shields.io/badge/Powered%20By-Wechaty-green.svg)](https://github.com/wechaty/wechaty)
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
169

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
170
## Wechaty Badge
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
171

Huan (李卓桓)'s avatar
doc  
Huan (李卓桓) 已提交
172
Get embed html/markdown code from [Wiki:PoweredByWechaty](https://github.com/wechaty/wechaty/wiki/PoweredByWechaty)
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
173

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
174
## Projects Use Wechaty
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
175

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
176
1. [Wechaty.io](https://www.wechaty.io) ChatBot Portal Manager for Wechaty 
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
177

Huan (李卓桓)'s avatar
doc  
Huan (李卓桓) 已提交
178
Know more about Projects Use Wechaty at [Wiki:PoweredByWechaty](https://github.com/wechaty/wechaty/wiki/PoweredByWechaty)
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
179

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
180
# Contributing
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
181

182
Howto [contribute](https://github.com/wechaty/wechaty/blob/master/CONTRIBUTING.md)
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
183

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203
Contributions in any form are highly encouraged and welcome! Be it new or improved presets, optimized streaming code or just some cleanup. So start forking!

## Code Contributions

If you want to add new features or change the API, please submit an issue first to make sure no one else is already working on the same thing and discuss the implementation and API details with maintainers and users by creating an issue. When everything is settled down, you can submit a pull request.

When fixing bugs, you can directly submit a pull request.

Make sure to add tests for your features and bugfixes and update the documentation (see below) before submitting your code!

## Documentation Contributions

You can directly submit pull requests for documentation changes.

## Main Contributors

* [JasLin](https://github.com/JasLin)
* [cherry-geqi](https://github.com/cherry-geqi)
* [lijiarui](https://github.com/lijiarui)

ruiruibupt's avatar
ruiruibupt 已提交
204 205
## Join us 

Huan (李卓桓)'s avatar
doc  
Huan (李卓桓) 已提交
206
Scan the following QR Code in WeChat, with secret code _wechaty_, you can join our **Wechaty Developers' Home**.
ruiruibupt's avatar
ruiruibupt 已提交
207

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
208 209
![Wechaty Developers' Home](https://raw.githubusercontent.com/wechaty/wechaty/master/image/BotQrcode.png)

210
Scan now, then you can chat with other Wechaty developers! (secret code: _wechaty_)
ruiruibupt's avatar
ruiruibupt 已提交
211

212
# See Also
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
213

214
* [RelatedProject](https://github.com/wechaty/wechaty/wiki/RelatedProject)
215

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
216 217 218
# Todo

* [ ] Use Dependency Injection for FriendRequest(etc)
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
219
  - [Typescript dependency injection container for Humans!](https://github.com/asvetliakov/Huject)
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
220 221 222
  - https://github.com/young-steveo/bottlejs
  - http://jonnyreeves.co.uk/2015/basic-typescript-dependency-injection-with-decorators/
  - https://github.com/connorwyatt/Fluency-Injection
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
223 224
* [ ] Use Observable for Throttle API Call Rate with Server
  - http://blog.thoughtram.io/angular/2016/01/06/taking-advantage-of-observables-in-angular2.html
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
225

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
226
My Story
227 228
----------------
My daily life/work depends on too much chat on wechat.
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
229
* I almost have 14,000 wechat friends in May 2014, before wechat restricts a total number of friends to 5,000.
230 231 232 233
* I almost have 400 wechat rooms that most of them have more than 400 members.

Can you image that? I'm dying...

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
234
So a tireless bot working for me 24x7 on wechat, monitoring/filtering the most important message is badly needed. For example highlights discussion which contains the KEYWORDS which I want to follow up(especially in a noisy room). ;-)
235 236 237

At last, It's built for my personal study purpose of Automatically Testing.

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
238 239 240 241 242
Author
-----------------
Zhuohuan LI <zixia@zixia.net> (http://linkedin.com/in/zixia)

<a href="http://stackoverflow.com/users/1123955/zixia">
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
243
  <img src="http://stackoverflow.com/users/flair/1123955.png" width="208" height="58" alt="profile for zixia at Stack Overflow, Q&amp;A for professional and enthusiast programmers" title="profile for zixia at Stack Overflow, Q&amp;A for professional and enthusiast programmers">
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
244 245 246 247 248 249 250
</a>

Copyright & License
-------------------
* Code & Docs 2016© zixia
* Code released under the ISC license
* Docs released under Creative Commons
251

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
252
[downloads-image]: http://img.shields.io/npm/dm/wechaty.svg?style=flat-square
253
[downloads-url]: https://npmjs.org/package/wechaty