提交 0876e325 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

v0.2.0

上级 75510f23
......@@ -5,7 +5,7 @@ Connecting ChatBots.
Wechaty is a Bot Framework for Wechat **Personal** Account.
> Easy creating personal account wechat robot in 9 lines of code.
> Easy creating personal wechat bot in 9 lines of code.
Supports [linux](https://travis-ci.org/zixia/wechaty), [win32](https://ci.appveyor.com/project/zixia/wechaty) and darwin(OSX/Mac).
......@@ -18,7 +18,7 @@ Supports [linux](https://travis-ci.org/zixia/wechaty), [win32](https://ci.appvey
# Voice of the Developer
> @GasLin it may be the best wecaht sdk i have seen in github! [Link](https://github.com/zixia/wechaty/issues/8#issuecomment-228971491)
> @GasLin: it may be the best wecaht sdk i have seen in github! [link](https://github.com/zixia/wechaty/issues/8#issuecomment-228971491)
# Examples
Wechaty is super easy to use: 9 lines of javascript is enough for your 1st wechat bot.
......
......@@ -21,7 +21,10 @@ Starting...
`
console.log(welcome)
const bot = new Wechaty({ profile: 'io-bot' })
const bot = new Wechaty({
profile: 'io-bot'
, token: process.env.WECHATY_TOKEN || 'wechaty' // token for wechaty.io auth
})
bot
.on('login' , user => log.info('Bot', `${user.name()} logined`))
......
{
"name": "wechaty",
"version": "0.1.8",
"version": "0.2.0",
"description": "Wechat for Bot. (Personal Account, NOT Official Account)",
"main": "index.js",
"scripts": {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册