Welcome to Wechaty!

Hello, ChatBot Developers!

Today is a big day because Wechaty got a brand new Blog! ;-)

In the past half year, Wechaty growth from version 0.0.1 to 0.6.32. Today, it has dozens of pull requests, 100+ issues, 200+ stars, 1,400+ commits and 10,000+ lines of code.

The Worlds Smallest ChatBot

Wechaty is a easy to use ChatBot Framework which can help you write the worlds smallest chatbot. Maybe you are very interesting in ChatBot industory, or you just want to get your own wechat personal account robot, Wechaty will always be your friend.

The following 6 lines javascript code example will show you how does Wechaty work:

import { Wechaty }  from 'wechaty'

Wechaty.instance() // Singleton
.on('scan', (url, code) => console.log(`Scan QR Code to login: ${code}\n${url}`))
.on('login',       user => console.log(`User ${user} logined`))
.on('message',  message => console.log(`Message: ${message}`))
.init()

How to run this piece of code? Easy. Wechaty has a docker image which can help you put your bot on duty in seconds:

docker run-ti --rm --volume="$(pwd)":/bot zixia/wechaty mybot.js

mybot.js contains our source code in the above example.

See? death easy to use!

Last but not least

  • Check out the Chatie IO for more info on how to get the most out of Wechaty.
  • File all bugs/feature requests at Wechaty’s GitHub repo.
  • If you have questions, you can ask other developers in Wechaty Developers’ Home by scan belowing Qr Code and send the secret code: wechaty.

secret code: wechaty

Visit Wechaty Github: https://github.com/wechaty/wechaty/

Cheers!

Best,

Huan, a ChatBot & Deep Learning Fan

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值