diff options
author | 2024-05-22 00:51:31 +0100 | |
---|---|---|
committer | 2024-05-22 03:54:38 +0100 | |
commit | dbbed7a6b82316f6836df0e7a5d4aa3d16382877 (patch) | |
tree | 07410f0f693546fa53474246e10ce7b0562c8518 | |
parent | Post nomination entries into the voting thread instead of the root (diff) |
Update !tp get_review command to upload nomination file with review
-rw-r--r-- | bot/exts/recruitment/talentpool/_cog.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/bot/exts/recruitment/talentpool/_cog.py b/bot/exts/recruitment/talentpool/_cog.py index efd92b878..ecd966c4f 100644 --- a/bot/exts/recruitment/talentpool/_cog.py +++ b/bot/exts/recruitment/talentpool/_cog.py @@ -800,9 +800,12 @@ class TalentPool(Cog, name="Talentpool"): await ctx.send(f":x: There doesn't appear to be an active nomination for {user_id}") return - review, _, _ = await self.reviewer.make_review(nominations[0]) - file = discord.File(StringIO(review), f"{user_id}_review.md") - await ctx.send(file=file) + review, _, _, nominations = await self.reviewer.make_review(nominations[0]) + + review_file = discord.File(StringIO(review), f"{user_id}_review.md") + nominations_file = discord.File(StringIO("\n\n".join(nominations)), f"{user_id}_nominations.md") + + await ctx.send(files=[review_file, nominations_file]) @nomination_group.command(aliases=("review",)) @has_any_role(*MODERATION_ROLES) |