Skip to content

Commit

Permalink
Fix duplicate feeds on reload
Browse files Browse the repository at this point in the history
  • Loading branch information
0x16c3 committed Aug 9, 2021
1 parent 5e1b1c9 commit e53e508
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cogs/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']}>"
Expand Down

0 comments on commit e53e508

Please sign in to comment.