Reduce to 8 members per page and truncate description at 512 characters

This commit is contained in:
Bella | Nightshade 2019-03-09 04:47:58 +09:30 committed by BuildTools
parent 16515e461c
commit d7b25bce22
2 changed files with 406 additions and 404 deletions

View file

@ -236,8 +236,10 @@ def member_list(system: System, all_members: List[Member], current_page: int, pa
member_description += "**Birthday:** {}\n".format(member.birthday_string()) member_description += "**Birthday:** {}\n".format(member.birthday_string())
if member.pronouns: if member.pronouns:
member_description += "**Pronouns:** {}\n".format(member.pronouns) member_description += "**Pronouns:** {}\n".format(member.pronouns)
if member.description: if (len(member.description)) > 512:
member_description += "\n" + member.description member_description += "\n" + truncate_description_system_list(member.description) + "..." + "\n\n" + "Type `pk;member <id>` for full member description."
elif member.description:
member_description += "\n" + member.description + "\n"
embed.add_field(name=member.name, value=member_description or "\u200B", inline=False) embed.add_field(name=member.name, value=member_description or "\u200B", inline=False)
return embed return embed