🐛
New issue chat-linker#66 Add plugin supportby
@jt3kIt would be great if the chat-linker could support the plug-ins.
This would make it easier to add functionality, for example anti-spam or anti-obscene-swearing.
At the first stage, I would like to see a synchronous or asynchronous middleware.
For example, as it is done in
axios interceptors or
babel-plugin plugin example:
module.exports = ({
interceptors: [
{
from: 'telegram',
to: 'xmpp',
interceptor({ network, name, message, room }) {
// message processing here
return { network, name, message, room }
}
}
]
})
Reply to this message to post a comment on GitHub.