hide url
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 6s

This commit is contained in:
Nexus 2024-05-12 18:02:43 +01:00
parent dc4364c9f3
commit bd477d2a79

View file

@ -368,9 +368,9 @@ class AutoResponder(commands.Cog):
await self.transcode_hevc_to_h264(reaction.message, additional=extra)
if isinstance(reaction.emoji, (discord.PartialEmoji, discord.Emoji)):
if reaction.emoji.name == "google_it" and reaction.message.id not in self.lmgtfy_cache:
await reaction.message.reply(
"https://letmegooglethat.com/?q=" + quote_plus(reaction.message.content)
)
url = "https://letmegooglethat.com/?q=" + quote_plus(reaction.message.content)
m = await reaction.message.reply(f"[Here's the answer to your question]({url})")
await m.edit(suppress=True)
self.lmgtfy_cache.append(reaction.message.id)
@commands.Cog.listener("on_raw_reaction_add")