From dbbed7a6b82316f6836df0e7a5d4aa3d16382877 Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Wed, 22 May 2024 00:51:31 +0100 Subject: Update !tp get_review command to upload nomination file with review --- bot/exts/recruitment/talentpool/_cog.py | 9 ++++++--- 1 file 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) -- cgit v1.2.3