Source: Time to do it differently, build chatbots with streams
Microsoft Bot Framework v4 adapter for Wechat Individual Account
If you are finding the Bot Framework v3 version of this adapter, please goto:
- the v3.0 branch, or
- NPM botbuilder-wechaty-connecter@3
- Ready for Microsoft Bot Framework v4
- no need a registered bot on dev.botframework.com, but require a wechat individual(NOT official!) account.
- Powered by wechaty
- Support receiving and sending almost any wechat message types(WIP)
npm install botbuilder-wechaty-adapter
We assume that, you already have a wechat individual account.
Step 1, create your wechaty adapter:
import { WechatyAdapter } from "botbuilder-wechaty-adapter"
const adapter = new WechatyAdapter()
Step 2, start listening your wechaty adapter:
const closeFn = await adapter.listen(async (context: TurnContext) => {
// ...
})
From there you can pass the context
to your bot logic's onTurn()
method.
To Be Supported.
An example is located at examples/
directory. Using following command to run it.
npm run example
This package is greatly inspired by:
Please feel free to open issues, if you have any suggestion.
- Create a bot with the Bot Builder SDK for Node.js
- Key concepts in the Bot Builder SDK for Node.js
- VIDEO: Become a Bot Builder with Microsoft Bot Framework - James Mann speaking at dotnetsheff in April, 2017
Upgrade to Microsoft BotBuilder v4
- Package name was rename to
botbuilder-wechaty-adapter
frombotbuilder-wechaty-connect
for following the v4 naming style.
Release botbuilder-wechaty-adapter@3.0
for BotBuilder v3
- Work with Microsoft Bot Framework v3
- Skip messages from other than a individual account(like official account, and SYS message)
- Refactoring all the code from
ConsoleConnector
- Working with Wechaty Individual Text Messages.
- An example run by
npm run example
- Add Room Message Support
- Add Full Message Types Support(current we only support text messages)
Huan LI <zixia@zixia.net>, who is recognized as both Microsoft Regional Director (RD) and Microsoft Most Valuable Professional (MVP) from Microsoft.
- Code & Docs © 2016-2019 Huan LI <zixia@zixia.net>
- Code released under the Apache-2.0 License
- Docs released under Creative Commons