listf fix?
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user