Compare commits
2 Commits
d1a1946b4b
...
757976c8f6
Author | SHA1 | Date | |
---|---|---|---|
757976c8f6 | |||
48c8893ddf |
6
setup.py
6
setup.py
@ -9,10 +9,10 @@ setup(
|
||||
license = "GPLc3",
|
||||
packages = find_packages(),
|
||||
install_requires = [
|
||||
"requests>=2.26.0",
|
||||
"slixmpp>=1.7.1",
|
||||
"requests==2.27.1",
|
||||
"slixmpp==1.7.1",
|
||||
"nextcord",
|
||||
"toml>=0.10.2"
|
||||
"toml==0.10.2"
|
||||
],
|
||||
extra_require = {
|
||||
"dev": [
|
||||
|
@ -206,6 +206,10 @@ class BridgeComponent(ComponentXMPP):
|
||||
wh = None
|
||||
for webhook in await dchannel.webhooks():
|
||||
if webhook.name == "discord-xmpp-bridge":
|
||||
if not webhook.is_authenticated():
|
||||
_logger.info("Webhook for %s has no token. Deleting and recreating" % muc)
|
||||
await webhook.delete(reason="Webhook has no token. Will recreate")
|
||||
else:
|
||||
wh = webhook
|
||||
break
|
||||
if not wh:
|
||||
@ -526,7 +530,15 @@ def main():
|
||||
general["port"],
|
||||
general["discord_token"],
|
||||
config)
|
||||
for xep in [ "0030", "0199", "0045", "0084", "0153", "0054", "0060" ]:
|
||||
for xep in [
|
||||
"0030",
|
||||
"0199",
|
||||
"0045",
|
||||
"0084",
|
||||
"0153",
|
||||
"0054",
|
||||
"0060"
|
||||
]:
|
||||
xmpp.register_plugin(f"xep_{xep}")
|
||||
|
||||
logging.basicConfig(stream=sys.stdout, level=verbosity)
|
||||
|
Loading…
Reference in New Issue
Block a user