hubotio / hubot

A customizable life embetterment robot.
https://hubotio.github.io/hubot/
MIT License
16.64k stars 3.75k forks source link

Support for multiple simultaneous adapters #507

Closed mcoquet closed 11 years ago

mcoquet commented 11 years ago

What i'm thinking of is something as simple as having the same bot connect to irc but also to jabber for example. Conceptually they aren't any different than supporting multiple rooms from one adapter.

Is this something anyone else would be interested in?

technicalpickles commented 11 years ago

It has been asked for before, but I don't think anyone has taken a stab at implementation. I'd be happy to give feedback on any PR you can come up with.

Supporting multiple adapters is quite a bit more complicated than multiple rooms. In particular, hubot stores information about users it encounters in its brain, so I'm not sure (yet) how that would look when you have users on multiple adapters.

mcoquet commented 11 years ago

thats cool. thanks for the feedback. At least I'm not the only one wanting it :)

I'll have a play, see what comes out on the the other end :)

technicalpickles commented 11 years ago

Currently, adapters have access to the brain. Campfire, for example, stores user data by Campfire User ID in the brain, which can be accessed in a lot of places. A lot of scripts depend on that being there. Changing that would break a lot of scripts (hubot-scripts and in production) and probably the brains too.

Maybe each adapter could have a brain for user data in addition to the robot's primary brain?

tombell commented 11 years ago

Going to close this for the time being.