[General] Update lmgtfy to our own fork of NatoBoram/lmgtfy (#6269)

This commit is contained in:
Glas 2024-03-03 18:56:48 -03:00 committed by GitHub
parent 9dc7462d0f
commit f5f684bad5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -220,7 +220,9 @@ class General(commands.Cog):
async def lmgtfy(self, ctx, *, search_terms: str):
"""Create a lmgtfy link."""
search_terms = escape(urllib.parse.quote_plus(search_terms), mass_mentions=True)
await ctx.send(f"https://lmgtfy2.com/query/?q={search_terms}")
await ctx.send(
f"https://cog-creators.github.io/lmgtfy/search?q={search_terms}&btnK=Google+Search"
)
@commands.command(hidden=True)
@commands.guild_only()