Wechaty Plugin
Middleware is computer software that connects software components or applications. The software consists of a set of services that allows multiple processes running on one or more machines to interact.
— Wikipedia
See also: What is middleware exactly?
#
A Purpose from @GcaufyYesterday, in our contributor group, @Gcaufy suggested that it would be great to add supporting of middleware to the Wechaty ecosystem, like the following usage:
有没有人把 踢人那个做成通用组件。。。那个很实用呀
然后这个房间就有踢人功能了。
I feel that it is a Brilliant idea!
So how about we design a middleware system like this:
#
Wechaty.use(middleware: WechatyMiddleware)Any comments about this design will be welcome.
P.S. The Kickout Feature was originally introduced from the PR add vote manager to manage vote message in room #4 authored by @windmemory.
#
Links#
History- Wechaty Plugin Support with Kickout Example #1939
- Wechaty插件系统发布,让你的机器人快速接入复杂管理和智能对话能力, @rickyyin98, Jul 22, 2020