Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions cogs/make_applicant.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,34 @@ async def _perform_make_applicant(
)
break

try:
await applicant_member.send(
content=(
f"Congratulations {applicant_member.mention}, "
"you are now an applicant! "
Comment thread
MattyTheHacker marked this conversation as resolved.
Outdated
"As you are not yet a student at the University, "
"you only have limited access to the server.\n\n"
Comment thread
MattyTheHacker marked this conversation as resolved.
Outdated
"If you're already a student, please contact a committee member and "
"we can manually give you access.\n\n"
Comment thread
MattyTheHacker marked this conversation as resolved.
Outdated
"If you've already purchased a membership, you can run the "
Comment thread
MattyTheHacker marked this conversation as resolved.
Outdated
f"/make-member command, and you will be given full access by "
Comment thread
MattyTheHacker marked this conversation as resolved.
Outdated
f"{self.bot.user.display_name if self.bot.user else 'TeX-Bot'}.\n\n"
"Some things to do to get started:\n"
f"1. Check out our rules in "
Comment thread
MattyTheHacker marked this conversation as resolved.
Outdated
f"{await self.bot.get_mention_string(self.bot.rules_channel)}\n"
"2. Head to "
f"{await self.bot.get_mention_string(self.bot.roles_channel)}"
" and click on the icons to get optional roles like "
"pronouns and year groups\n"
Comment thread
MattyTheHacker marked this conversation as resolved.
Outdated
"3. Change your nickname to whatever "
"you wish others to refer to you as."
Comment thread
MattyTheHacker marked this conversation as resolved.
Outdated
),
)
except discord.Forbidden:
logger.warning(
"Failed to send applicant induction DM to user %s", applicant_member
)

await ctx.followup.send(
content=":white_check_mark: User is now an applicant.",
ephemeral=True,
Expand Down