From e53e508eb4923457f1a0a63712d9b39b8288e8da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?emir=20=C3=B6ncel?= <0x16c3@gmail.com> Date: Mon, 9 Aug 2021 14:35:48 +0300 Subject: [PATCH] Fix duplicate feeds on reload --- cogs/controller.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cogs/controller.py b/cogs/controller.py index 2c2d86e..ff3561f 100644 --- a/cogs/controller.py +++ b/cogs/controller.py @@ -341,6 +341,9 @@ async def on_ready(self): for item in items: channel = self.client.get_channel(int(item["channel"])) + if item in self.feeds: + continue + if not channel: logger.debug( f"Could not load <{item['username']}:{item['channel']}:{item['type']}>"