all bots listen on tcp (gateway,agent) for the client to connect to it.
use a filter and redirect it to the ports of the
bot
and implement your own features (auto party matching) in it.
2 ways to get the port
1: netstat
2: use a program that i made (based on this

) to get the ports download src & bins in attachments
i also made an example project for how to use it & receive output from the console window (easy to fetch ports without changing them manually everytime you start mbot)
in this case i would use any open source filter available to do it. now it all comes down to parsing the party packets & injecting packets.
one more thing, this should work with sbot too (didn't test it)
proof of it working: