Skip to content

Commit

Permalink
react only to mentions, not replies etc. (fix #53)
Browse files Browse the repository at this point in the history
  • Loading branch information
honzajavorek committed Apr 16, 2024
1 parent 290e5ec commit 9b46e99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jg/chick/bot.py
Expand Up @@ -97,7 +97,7 @@ async def on_thread_message(
thread: discord.Thread,
message: discord.Message,
):
if channel.name == "cv-github-linkedin" and bot_user.mentioned_in(message):
if channel.name == "cv-github-linkedin" and bot_user.mention in message.content:
logger.info("Noticed mention in #cv-github-linkedin, starting review")
starting_message = (await fetch_starting_message(thread)) or message
await handle_review_thread(starting_message, thread)
Expand Down
2 changes: 1 addition & 1 deletion jg/chick/lib/reviews.py
@@ -1,6 +1,6 @@
import os
import re
from typing import Any, Generator, TypedDict
from typing import Any, Generator
from urllib.parse import quote, unquote

from discord import Attachment, Color, Embed, ForumTag, Thread
Expand Down

0 comments on commit 9b46e99

Please sign in to comment.