feat: prepare to resume mentorship programme
Node.js CI / Lint and Test (push) Successful in 52s

This commit is contained in:
2025-10-30 17:50:03 -07:00
parent 1d9e922991
commit 50e46368ed
3 changed files with 14 additions and 2 deletions
+6 -1
View File
@@ -12,7 +12,12 @@ interface Channel {
} }
const nhcarriganMentorshipChannels: Array<Channel> = [ const nhcarriganMentorshipChannels: Array<Channel> = [
{
channelId: "1400630073010163792",
createThread: true,
name: "accountability",
roleId: "1400588705273745550",
},
]; ];
const freeCodeCampSprintChannels: Array<Channel> = [ const freeCodeCampSprintChannels: Array<Channel> = [
+1 -1
View File
@@ -46,7 +46,7 @@ export const logMenteeJoin = async(
Welcome to our community! It looks like you may have applied for our mentorship programme! Welcome to our community! It looks like you may have applied for our mentorship programme!
If that is correct, you should ping Naomi to grant your role and begin onboarding! <a:love:1364089736557494353>`, If that is correct, you should ping Naomi **with your GitHub username** to grant your role and begin onboarding! <a:love:1364089736557494353>`,
}); });
await logger.metric("processed_mentee_join", 1, { user: member.id }); await logger.metric("processed_mentee_join", 1, { user: member.id });
}; };
+7
View File
@@ -123,6 +123,13 @@ const postHackerNews = async(amari: Amari): Promise<void> => {
} }
await Promise.all( await Promise.all(
latestPosts.map(async(post) => { latestPosts.map(async(post) => {
if (
hasNaughtyWords(post.title)
|| hasNaughtyWords(post.contentSnippet)
|| hasNaughtyWords(post.content)
) {
return;
}
const sent = await channel.send(post.link); const sent = await channel.send(post.link);
if (channel.type === ChannelType.GuildAnnouncement) { if (channel.type === ChannelType.GuildAnnouncement) {
await sent.crosspost(); await sent.crosspost();