fork of https://f-hub.org/XMPP/xmpp-discord-bridge

fix: replaced dropped slixmpp function

+4 -3
+3 -2
docs/example.toml
··· 22 22 # If true, then xmpp-discord-bridge will also make offline Discord users appear in the MUC. 23 23 # If they are offline, then they will have a presence of "xa". If false, then offline users 24 24 # will leave the MUC. 25 - dont_ignore_offline = false 25 + dont_ignore_offline = true 26 26 27 27 # If true, when receiving a file to embed in Discord, the bridge will remove the URL from 28 28 # the content, leaving only the embed behind. This prevents Discord users who disabled ··· 51 51 url = "https://example.com/avatars/" 52 52 53 53 [discord] 54 + # There can be multiple [[discord.channels]] sections to bridge multiple MUCs and channels together. 54 55 [[discord.channels]] 55 56 # The ID of the guild 56 57 guild = 000000000 ··· 59 60 channel = 000000000 60 61 61 62 # The MUC to mirror into 62 - muc = "channel@muc.server.example" 63 + muc = "channel@muc.example.com"
+1 -1
xmpp_discord_bridge/main.py
··· 615 615 logging.basicConfig(stream=sys.stdout, level=verbosity) 616 616 617 617 xmpp.connect() 618 - xmpp.process(forever=True) 618 + xmpp.loop.run_forever() 619 619 620 620 if __name__ == "__main__": 621 621 main()