From 5980ac4b13a2797760f26999a9e2d335a904aa9f Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 12 Mar 2023 16:34:38 +0100 Subject: [PATCH] Added automatic Trial role assignment, should make set-able --- recruitmentCog/recruitment.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/recruitmentCog/recruitment.py b/recruitmentCog/recruitment.py index eacc062..fa216cc 100644 --- a/recruitmentCog/recruitment.py +++ b/recruitmentCog/recruitment.py @@ -254,6 +254,13 @@ class Recruitment(commands.Cog): return await author.send(_("You took too long. Try again later.")) else: val = await self.send_application(ctx, message, guild) + # Get the role to assign using its ID + trialRole_id = 531181363420987423 + role = get(ctx.guild.roles, id=trialRole_id) + + # Assign the role to the user who sent the application + if role is not None: + await author.add_roles(role) with contextlib.suppress(discord.Forbidden, discord.HTTPException): if val is None: