diff --git a/xmpp_discord_bridge/main.py b/xmpp_discord_bridge/main.py index 515696e..2091144 100644 --- a/xmpp_discord_bridge/main.py +++ b/xmpp_discord_bridge/main.py @@ -194,10 +194,10 @@ class BridgeComponent(ComponentXMPP): str(vcard))) # Aquire a webhook - wh = "" + wh = None for webhook in await dchannel.webhooks(): if webhook.name == "discord-xmpp-bridge": - wh webhook + wh = webhook break if not wh: wh = await dchannel.create_webhook(name="discord-xmpp-bridge",