Skip to content

Commit

Permalink
ignore bot images for ooc
Browse files Browse the repository at this point in the history
  • Loading branch information
ropc committed May 8, 2024
1 parent 8e3687c commit 1db7e69
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions memebot/cogs/outofcontext.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ async def load_attachments(self, guild_id: int, channel_id: int):

message_attachments = []
async for message in channel.history(limit=10_000):
if message.author.bot:
continue
message_attachments.extend(MessageAttachment.from_message(message))

self.guild_attachments[guild_id] = message_attachments
Expand Down

0 comments on commit 1db7e69

Please sign in to comment.