From f4411022b96a30f3f1cebb7ceaef7e084bb74cc5 Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Sun, 12 May 2024 23:05:41 +0100 Subject: [PATCH] update lmgtfy --- src/cogs/auto_responder.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cogs/auto_responder.py b/src/cogs/auto_responder.py index 4e7ec82..c4bd2eb 100644 --- a/src/cogs/auto_responder.py +++ b/src/cogs/auto_responder.py @@ -366,9 +366,9 @@ class AutoResponder(commands.Cog): extra = [attachment.url for attachment in reaction.message.attachments] if self.allow_on_demand_transcoding: 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: - url = "https://letmegooglethat.com/?q=" + quote_plus(reaction.message.content) + if reaction.emoji == discord.PartialEmoji.from_str("\U0001f310"): + if reaction.message.id not in self.lmgtfy_cache: + url = "https://lmgtfy2.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)