-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
It 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', // or from: '*'
to: 'xmpp',
interceptor({ network, name, message, room }) {
// message processing here
return { network, name, message, room }
}
}
]
})eilvelia and ForNeVeRalbjeremias
Metadata
Metadata
Assignees
Labels
No labels