@@ -83,13 +83,41 @@ async def _perform_make_applicant(
8383 if "90001" not in str (e ):
8484 raise e from e
8585
86- logger .info (
86+ logger .warning (
8787 "Failed to add reactions because the user, %s, "
8888 "has blocked TeX-Bot." ,
8989 recent_message .author ,
9090 )
9191 break
9292
93+ try :
94+ await applicant_member .send (
95+ content = (
96+ f"Congratulations { applicant_member .mention } , "
97+ "you are now an applicant! "
98+ "As you are not yet a student at the University, "
99+ "you only have limited access to the server.\n \n "
100+ "If you're already a student, please contact a committee member and "
101+ "we can manually give you access.\n \n "
102+ "If you've already purchased a membership, you can run the "
103+ f"/make-member 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+ f"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 groups\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