fix globe reaction
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 4m13s

This commit is contained in:
Nexus 2024-05-13 14:15:36 +01:00
parent f4411022b9
commit ce4dd1c4d6
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -366,7 +366,7 @@ class AutoResponder(commands.Cog):
extra = [attachment.url for attachment in reaction.message.attachments] extra = [attachment.url for attachment in reaction.message.attachments]
if self.allow_on_demand_transcoding: if self.allow_on_demand_transcoding:
await self.transcode_hevc_to_h264(reaction.message, additional=extra) await self.transcode_hevc_to_h264(reaction.message, additional=extra)
if reaction.emoji == discord.PartialEmoji.from_str("\U0001f310"): if reaction.emoji.name == "\U0001f310":
if reaction.message.id not in self.lmgtfy_cache: if reaction.message.id not in self.lmgtfy_cache:
url = "https://lmgtfy2.com/?q=" + quote_plus(reaction.message.content) url = "https://lmgtfy2.com/?q=" + quote_plus(reaction.message.content)
m = await reaction.message.reply(f"[Here's the answer to your question]({url})") m = await reaction.message.reply(f"[Here's the answer to your question]({url})")