Skip to content

Commit

Permalink
Fix ruff error
Browse files Browse the repository at this point in the history
  • Loading branch information
SeoulSKY committed Nov 30, 2024
1 parent c2e3e2b commit 07a3934
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ argostranslate~=1.9.1
google-generativeai~=0.6.0
cryptography~=42.0.8
ytnoti~=2.1.0
ruff~=0.6.3
ruff~=0.8.1
4 changes: 2 additions & 2 deletions src/commands/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ async def _get_model(self,
def _is_chat_message(self, message: Message) -> bool:
return (
self.bot.user in message.mentions
or message.reference is not None
and message.reference.resolved.author == self.bot
or (message.reference is not None
and message.reference.resolved.author == self.bot)
)

async def _get_history(self, user: discord.User | Member) -> Iterable[ContentType]:
Expand Down

0 comments on commit 07a3934

Please sign in to comment.