You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Nevertheless current "Occupant" structure is important for testing modes (interract, script, unittest…) but could be simplified/optimized in the case of XMPP MUCs.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: