Skip to content

Commit

Permalink
remove pointless f-strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick80835 committed Oct 10, 2020
1 parent 899355e commit 7055b28
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ubot/modules/booru.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

@ldr.add_dict(commands, pattern_extra="(f|)", help="Fetches images from Danbooru, Gelbooru, Konachan, Sankaku Complex and Yandere, takes tags as arguments.")
async def booru(event):
await event.edit(f"`Processing…`")
await event.edit("`Processing…`")
safety_arg = event.command[-1]
as_file = bool(event.other_args[0])
post = await event.extra.get_random_post(event.args, safety_arg)
Expand Down
2 changes: 1 addition & 1 deletion ubot/modules/fourchan.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ async def fourchan(event):
await event.edit(f"`Syntax: {ldr.settings.get_config('cmd_prefix') or '.'}4c(f|) <board name>`")
return

await event.edit(f"`Processing…`")
await event.edit("`Processing…`")
as_file = bool(event.other_args[0])

async with ldr.aioclient.get(BOARD_URL.format(event.args)) as response:
Expand Down
4 changes: 2 additions & 2 deletions ubot/modules/nekos.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

@ldr.add_list(NEKO_TYPES, pattern_extra="(f|)")
async def supernekoatsume(event):
await event.edit(f"`Processing…`")
await event.edit("`Processing…`")
nekotype = event.command.lower()
as_file = bool(event.other_args[0])

Expand All @@ -38,7 +38,7 @@ async def supernekoatsume(event):

@ldr.add("8ball")
async def eightball(event):
await event.edit(f"`Processing…`")
await event.edit("`Processing…`")

async with ldr.aioclient.get(NEKO_URL + "8ball") as response:
if response.status == 200:
Expand Down
2 changes: 1 addition & 1 deletion ubot/modules/scrapers.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ async def corona(event):
return

response_list = [
f"Global Corona stats\n",
"Global Corona stats\n",
f"**Cases**\n {response['cases']} total\n {response['todayCases']} today\n {response['active']} active\n {round(response['cases'] / response['population'] * 100, 2)}% of population",
f"**Tests**\n {response['tests']} total\n {round(response['cases'] / response['tests'] * 100, 2)}% positive\n {round(response['tests'] / response['population'] * 100, 2)}% of population",
f"**Deaths**\n {response['deaths']} total\n {response['todayDeaths']} today\n {round(response['deaths'] / response['cases'] * 100, 2)}% of cases\n {round(response['deaths'] / response['population'] * 100, 2)}% of population",
Expand Down
2 changes: 1 addition & 1 deletion ubot/modules/sticklet.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@ldr.add("color")
async def stickcolor(event):
if not event.args:
await event.edit(f"`Specify a valid color, use #colorhex or a color name.`")
await event.edit("`Specify a valid color, use #colorhex or a color name.`")
return

try:
Expand Down

0 comments on commit 7055b28

Please sign in to comment.