Skip to content

Commit

Permalink
feat: use f-string instead of format
Browse files Browse the repository at this point in the history
  • Loading branch information
Lydia authored Oct 7, 2023
1 parent 7dfe243 commit 4d74cc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redbot/cogs/general/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ async def stopwatch(self, ctx):
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={}&s=g".format(search_terms))
await ctx.send(f"https://lmgtfy.app/?q={search_terms}&s=g")

@commands.command(hidden=True)
@commands.guild_only()
Expand Down

0 comments on commit 4d74cc4

Please sign in to comment.