Skip to content

Commit

Permalink
Fix r9k for non-user messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Twixes committed Feb 4, 2024
1 parent b7a24a4 commit 2443f0f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/imaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,9 @@ async def robot9000(self, ctx: commands.Context, *, text_query: Optional[str] =
'wcześniejszych wystąpień',
)
embed.title = (
f'🤖 Wykryłem {occurences_form} na serwerze obrazka wysłanego przez {sent_by.display_name} o '
f'{base_image9000.sent_at.strftime("%-H:%M")}'
f'🤖 Wykryłem {occurences_form} na serwerze obrazka wysłanego '
+ f"przez {sent_by.display_name} " if sent_by is not None else ""
+ f'o {base_image9000.sent_at.strftime("%-H:%M")}'
)
else:
embed = self.bot.generate_embed(
Expand Down

0 comments on commit 2443f0f

Please sign in to comment.