mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[General] Fix [p]lmgtfy URL generation (#5909)
Co-authored-by: Jakub Kuczys <me@jacken.men>
This commit is contained in:
parent
66f906c274
commit
1fbd6d854b
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user