[3.4] [General] Fix [p]lmgtfy URL generation (#5909) (#6060)

Co-authored-by: Ryan <50505980+ryan5453@users.noreply.github.com>
Co-authored-by: Jakub Kuczys <me@jacken.men>
This commit is contained in:
Red-GitHubBot
2023-04-20 00:04:55 +02:00
committed by GitHub
parent 1afc19afc7
commit 37730110d9

View File

@@ -218,7 +218,7 @@ 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("https://lmgtfy.app/?q={}".format(search_terms))
await ctx.send("https://lmgtfy.app/?q={}&s=g".format(search_terms))
@commands.command(hidden=True)
@commands.guild_only()