From c7e935c15cff3d13087c381c9ad71ee2ac87fd8e Mon Sep 17 00:00:00 2001
From: thedragonsinn <98635854+thedragonsinn@users.noreply.github.com>
Date: Sat, 7 Oct 2023 19:39:17 +0530
Subject: [PATCH] listf fix?
---
app/plugins/fbans.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
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)