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

Co-authored-by: Jakub Kuczys <me@jacken.men>
This commit is contained in:
Ryan 2022-11-17 17:22:44 -05:00 committed by GitHub
parent 66f906c274
commit 1fbd6d854b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -220,7 +220,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()