From a7ce5bdb404ba44d490204eaf7001db1c58ae69c Mon Sep 17 00:00:00 2001 From: Tristan Gosselin-Hane Date: Sun, 18 Nov 2018 13:47:02 -0500 Subject: [PATCH] Clear the list of webhooks when the bot reconnects to discord --- webhook-bridge.py | 1 + 1 file changed, 1 insertion(+) diff --git a/webhook-bridge.py b/webhook-bridge.py index 4d6f334..fad5662 100755 --- a/webhook-bridge.py +++ b/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))