Skip to content

Commit f18fc22

Browse files
Implement DM to applicants on induction (#465)
1 parent e86a9cf commit f18fc22

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

cogs/make_applicant.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,34 @@ async def _perform_make_applicant(
9090
)
9191
break
9292

93+
try:
94+
await applicant_member.send(
95+
content=(
96+
f"Congratulations {applicant_member.mention}, you've "
97+
"now been given applicant access to the CSS Discord server! "
98+
"As you are not yet a student at the University, "
99+
"you only have limited access to participate in certain channels.\n\n"
100+
"If you are already a student and your induction as an applicant was"
101+
" a mistake, please contact a committee member.\n\n"
102+
"If you have already purchased a membership, you can run the "
103+
"`/makemember` command, and you will be given full access by "
104+
f"{self.bot.user.display_name if self.bot.user else 'TeX-Bot'}.\n\n"
105+
"Some things to do to get started:\n"
106+
"1. Check out our rules in "
107+
f"{await self.bot.get_mention_string(self.bot.rules_channel)}\n"
108+
"2. Head to "
109+
f"{await self.bot.get_mention_string(self.bot.roles_channel)}"
110+
" and click on the icons to get optional roles like "
111+
"pronouns and year group\n"
112+
"3. Change your nickname to whatever "
113+
"you wish others to refer to you as"
114+
),
115+
)
116+
except discord.Forbidden:
117+
logger.warning(
118+
"Failed to send applicant induction DM to user %s", applicant_member
119+
)
120+
93121
await ctx.followup.send(
94122
content=":white_check_mark: User is now an applicant.",
95123
ephemeral=True,

0 commit comments

Comments
 (0)