diff --git a/app/plugins/fbans.py b/app/plugins/fbans.py index 7be5ae0..5ce4847 100644 --- a/app/plugins/fbans.py +++ b/app/plugins/fbans.py @@ -122,7 +122,7 @@ async def un_fban(bot: bot, message: Message): @bot.add_cmd(cmd="listf") async def fed_list(bot: bot, message: Message): - output: str = "List of {} Connected Feds:\n\n" + output: str = "" total = 0 async for fed in DB.FED_LIST.find(): output += f'• {fed["name"]}\n' @@ -132,4 +132,5 @@ async def fed_list(bot: bot, message: Message): if not total: await message.reply("You don't have any Feds Connected.") return - await message.reply(output.format(total), del_in=30, block=False) + output: str = f"List of {total} Connected Feds:\n\n{output}" + await message.reply(output, del_in=30, block=False)