listf fix?

This commit is contained in:
thedragonsinn
2023-10-07 19:39:17 +05:30
parent 5092fd12f6
commit c7e935c15c

View File

@@ -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 <b>{}</b> Connected Feds:\n\n"
output: str = ""
total = 0
async for fed in DB.FED_LIST.find():
output += f'<b>• {fed["name"]}</b>\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 <b>{total}</b> Connected Feds:\n\n{output}"
await message.reply(output, del_in=30, block=False)