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

Presences with sleekxmpp #8

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

Presences with sleekxmpp #8

sleduc opened this issue Oct 7, 2012 · 0 comments

Comments

@sleduc
Copy link
Member

sleduc commented Oct 7, 2012

To store "who is present or not in a room" we currently use a structure similar to a dictionary (Occupants in pipobot.lib.users). The module RecordUser (defined in pipobot.lib.modules) is listening to XMPP presence messages and updating it.

Sleekxmpp muc module is able to provide all these informations (and more !) natively : see
https://github.com/fritzy/SleekXMPP/blob/develop/sleekxmpp/plugins/xep_0045.py
Sleekxmpp is handling MUC presence, keeping tracks of nicknames/jid/roles/…

Nevertheless current "Occupant" structure is important for testing modes (interract, script, unittest…) but could be simplified/optimized in the case of XMPP MUCs.

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