fix: Fix AttributeError on missing process method in slixmpp
This commit resolves an `AttributeError` when starting the `SovereignBridge` class due to the missing `process` method. Newer versions of `slixmpp` (1.8+) leverage the standard `asyncio` loop directly and no longer provide the legacy `process(forever=True)` wrapper. The bridge now correctly starts the XMPP client by calling `xmpp.loop.run_forever()` directly after `xmpp.connect()`. Co-authored-by: jamessucla <2191476+jamessucla@users.noreply.github.com>
This commit is contained in:
@@ -107,7 +107,7 @@ def main():
|
||||
|
||||
logging.info("Connecting to XMPP server...")
|
||||
xmpp.connect()
|
||||
xmpp.process(forever=True)
|
||||
xmpp.loop.run_forever()
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user