Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Account XMPP connections #10

Open
sleduc opened this issue Oct 7, 2012 · 0 comments
Open

Account XMPP connections #10

sleduc opened this issue Oct 7, 2012 · 0 comments

Comments

@sleduc
Copy link
Member

sleduc commented Oct 7, 2012

As for now, if we want a bot to join several rooms, pipobot will create as many XMPP clients as room it has to join.
We could improve this behaviour by:

  • creating an 'account' configuration with a jid/password
  • associating each room with a JID
  • creating one XMPP client instance by account, and it will join several rooms if needed

To manage that we will obviously have to change how the BotJabber is handling connections, thanks to the muc plugin of sleekxmpp: https://github.com/fritzy/SleekXMPP/blob/develop/sleekxmpp/plugins/xep_0045.py
For instance the muc plugin has a "room" attribute where information about all joined rooms are stored.

This may require to change the organisation, configuration and communication between the bot and modules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant