Skip to content

v0.7.0 #166

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Mar 31, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,10 @@ bot.start()

## 开发测试

```
```shell
git clone https://github.com/nodeWechat/wechat4u.git
cd wechat4u
npm install
npm run example // web服务器模式
npm run core // 命令行模式
npm run compile // babel编译
```
Expand All @@ -47,10 +46,22 @@ npm run compile // babel编译

逻辑见[代码](https://github.com/nodeWechat/wechat4u/blob/master/run-core.js),简明完整,一定要看

## 实例化Wechat类

```javascript
let bot = new Wechat([botData])
```

若传入`botData`,则使用此机器人信息,重新开始之前的同步

## 实例属性

所有属性均只读

### bot.botData

可导出的实例基本信息,在下次new新bot时,可以填入此信息,重新同步

### bot.PROP

保持登录状态的必要信息
Expand Down Expand Up @@ -104,6 +115,10 @@ msg为`Message`对象,具体属性方法见`src/interface/message.js`

调用该方法后,通过监听事件来处理消息

### bot.restart()

利用实例已获取的必要信息,重新登录和进行同步

### bot.stop()

停止实例,退出登录
Expand Down
10 changes: 0 additions & 10 deletions example/.babelrc

This file was deleted.

42 changes: 0 additions & 42 deletions example/README.md

This file was deleted.

21 changes: 0 additions & 21 deletions example/app.js

This file was deleted.

84 changes: 0 additions & 84 deletions example/lib/wxbot.js

This file was deleted.

Binary file not shown.
Loading