mirror of
https://github.com/miaowware/qrm2.git
synced 2024-11-22 15:58:40 -05:00
Removed unused f-strings
- f"" -> "" Element of #142 New year lint removal
This commit is contained in:
parent
6803b058d5
commit
9ef4864d15
@ -38,7 +38,7 @@ class ImageCog(commands.Cog):
|
||||
desc = "Possible arguments are:\n"
|
||||
for key, img in self.bandcharts.items():
|
||||
desc += f"`{key}`: {img.name}{(' ' + img.emoji if img.emoji else '')}\n"
|
||||
embed.title = f"Bandplan Not Found!"
|
||||
embed.title = "Bandplan Not Found!"
|
||||
embed.description = desc
|
||||
embed.colour = cmn.colours.bad
|
||||
await ctx.send(embed=embed)
|
||||
@ -93,7 +93,7 @@ class ImageCog(commands.Cog):
|
||||
if resp.status != 200:
|
||||
raise cmn.BotHTTPError(resp)
|
||||
data = io.BytesIO(await resp.read())
|
||||
embed.set_image(url=f"attachment://greyline.jpg")
|
||||
embed.set_image(url="attachment://greyline.jpg")
|
||||
await ctx.send(embed=embed, file=discord.File(data, "greyline.jpg"))
|
||||
|
||||
|
||||
|
@ -44,7 +44,7 @@ class LookupCog(commands.Cog):
|
||||
query = query.upper()
|
||||
full_query = query
|
||||
embed = cmn.embed_factory(ctx)
|
||||
embed.title = f"DXCC Info for "
|
||||
embed.title = "DXCC Info for "
|
||||
embed.description = f"*Last Updated: {self.cty.formatted_version}*"
|
||||
embed.colour = cmn.colours.bad
|
||||
while query:
|
||||
|
@ -37,7 +37,7 @@ class WeatherCog(commands.Cog):
|
||||
if resp.status != 200:
|
||||
raise cmn.BotHTTPError(resp)
|
||||
data = io.BytesIO(await resp.read())
|
||||
embed.set_image(url=f"attachment://condx.png")
|
||||
embed.set_image(url="attachment://condx.png")
|
||||
await ctx.send(embed=embed, file=discord.File(data, "condx.png"))
|
||||
|
||||
@commands.group(name="weather", aliases=["wttr"], category=cmn.cat.weather)
|
||||
@ -84,7 +84,7 @@ See help for weather command for possible location types. Add a `-c` or `-f` to
|
||||
if resp.status != 200:
|
||||
raise cmn.BotHTTPError(resp)
|
||||
data = io.BytesIO(await resp.read())
|
||||
embed.set_image(url=f"attachment://wttr_forecast.png")
|
||||
embed.set_image(url="attachment://wttr_forecast.png")
|
||||
await ctx.send(embed=embed, file=discord.File(data, "wttr_forecast.png"))
|
||||
|
||||
@_weather_conditions.command(name="now", aliases=["n"], category=cmn.cat.weather)
|
||||
@ -115,7 +115,7 @@ See help for weather command for possible location types. Add a `-c` or `-f` to
|
||||
if resp.status != 200:
|
||||
raise cmn.BotHTTPError(resp)
|
||||
data = io.BytesIO(await resp.read())
|
||||
embed.set_image(url=f"attachment://wttr_now.png")
|
||||
embed.set_image(url="attachment://wttr_now.png")
|
||||
await ctx.send(embed=embed, file=discord.File(data, "wttr_now.png"))
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user