hide url
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 6s
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 6s
This commit is contained in:
parent
dc4364c9f3
commit
bd477d2a79
1 changed files with 3 additions and 3 deletions
|
@ -368,9 +368,9 @@ class AutoResponder(commands.Cog):
|
||||||
await self.transcode_hevc_to_h264(reaction.message, additional=extra)
|
await self.transcode_hevc_to_h264(reaction.message, additional=extra)
|
||||||
if isinstance(reaction.emoji, (discord.PartialEmoji, discord.Emoji)):
|
if isinstance(reaction.emoji, (discord.PartialEmoji, discord.Emoji)):
|
||||||
if reaction.emoji.name == "google_it" and reaction.message.id not in self.lmgtfy_cache:
|
if reaction.emoji.name == "google_it" and reaction.message.id not in self.lmgtfy_cache:
|
||||||
await reaction.message.reply(
|
url = "https://letmegooglethat.com/?q=" + quote_plus(reaction.message.content)
|
||||||
"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)
|
self.lmgtfy_cache.append(reaction.message.id)
|
||||||
|
|
||||||
@commands.Cog.listener("on_raw_reaction_add")
|
@commands.Cog.listener("on_raw_reaction_add")
|
||||||
|
|
Loading…
Reference in a new issue