Clear the list of webhooks when the bot reconnects to discord

feature/embed-uploads
Tristan Gosselin-Hane 7 years ago
parent dd3452015a
commit a7ce5bdb40
No known key found for this signature in database
GPG Key ID: D2282BE1CF7B78DA
  1. 1
      webhook-bridge.py

@ -397,6 +397,7 @@ def main():
for webhook in channel_webhooks:
if webhook.name == "_minecraft":
global WEBHOOKS
WEBHOOKS = []
WEBHOOKS.append(webhook.url)
found = True
logging.debug("Found webhook {} in channel {}".format(webhook.name, discord_channel.name))

Loading…
Cancel
Save