This was discussed internally and would be a really nice feature to have.
Previously there was a very experimental user spoofing option via slack like webhooks, but that was removed since the Prosody module it depended on was long abandoned.
The ideal solution would be to add XEP-0225 privileged component connection support to Matterbridge, so that it can connect directly to a XMPP server and create user puppets as needed.
The blocker for that is basically that the go-xmpp library that we use lacks this feature. It seems however that this could be added relatively easily based on an previous partial PR.
An alternative would be to switch to the Mellium library that supports this, but this might bring other disadvantages and would need a partial rewrite of the xmpp bridge part.
One of our contributors made a proof of concept with Mellium to explore the general feasibility of this and it seems to work in principle.
Another option would be to use an existing feature in Matterbridge to spawn multiple connections on an SASL anonymous capable c2s endpoint and manage multiple bots that way. This is more of a hack and needs server specific server side configuration that most XMPP servers lack.
This was discussed internally and would be a really nice feature to have.
Previously there was a very experimental user spoofing option via slack like webhooks, but that was removed since the Prosody module it depended on was long abandoned.
The ideal solution would be to add XEP-0225 privileged component connection support to Matterbridge, so that it can connect directly to a XMPP server and create user puppets as needed.
The blocker for that is basically that the go-xmpp library that we use lacks this feature. It seems however that this could be added relatively easily based on an previous partial PR.
An alternative would be to switch to the Mellium library that supports this, but this might bring other disadvantages and would need a partial rewrite of the xmpp bridge part.
One of our contributors made a proof of concept with Mellium to explore the general feasibility of this and it seems to work in principle.
Another option would be to use an existing feature in Matterbridge to spawn multiple connections on an SASL anonymous capable c2s endpoint and manage multiple bots that way. This is more of a hack and needs server specific server side configuration that most XMPP servers lack.