diff options
author | 2021-05-10 19:03:56 +0200 | |
---|---|---|
committer | 2021-05-10 19:03:56 +0200 | |
commit | 77f80ca44b397ba165f3d5a3877a708a62e13371 (patch) | |
tree | 97ada5c255474743ea889b983b60a34bc66c38a7 | |
parent | Duckpond: make use of count_unique_users_reaction (diff) |
Nomination: fix formatting issue
-rw-r--r-- | bot/exts/recruitment/talentpool/_review.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/bot/exts/recruitment/talentpool/_review.py b/bot/exts/recruitment/talentpool/_review.py index 10bdac988..caf0ed7e7 100644 --- a/bot/exts/recruitment/talentpool/_review.py +++ b/bot/exts/recruitment/talentpool/_review.py @@ -144,7 +144,11 @@ class Reviewer: break messages.append(new_message) - content = "".join(message_.content for message_ in messages[::-1]) + parts = [] + for message_ in messages[::-1]: + parts.append(message_.content) + parts.append("\n" if message_.content.endswith(".") else " ") + content = "".join(parts) # We assume that the first user mentioned is the user that we are voting on user_id = int(MENTION_RE.search(content).group(1)) @@ -185,7 +189,9 @@ class Reviewer: embed_title = f"Vote for `{user_id}`" channel = self.bot.get_channel(Channels.nomination_archive) - for number, part in enumerate(textwrap.wrap(embed_content, width=MAX_MESSAGE_SIZE, replace_whitespace=False)): + for number, part in enumerate( + textwrap.wrap(embed_content, width=MAX_MESSAGE_SIZE, replace_whitespace=False, placeholder="") + ): await channel.send(embed=Embed( title=embed_title if number == 0 else None, description="[...] " + part if number != 0 else part, |