diff --git a/jg/chick/bot.py b/jg/chick/bot.py index d7f9db6..08af8d1 100644 --- a/jg/chick/bot.py +++ b/jg/chick/bot.py @@ -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) diff --git a/jg/chick/lib/reviews.py b/jg/chick/lib/reviews.py index 9537916..bd2931a 100644 --- a/jg/chick/lib/reviews.py +++ b/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