From 50e46368ed6a937c666d67cba4fdcd563af9de1d Mon Sep 17 00:00:00 2001 From: Naomi Carrigan Date: Thu, 30 Oct 2025 17:50:03 -0700 Subject: [PATCH] feat: prepare to resume mentorship programme --- src/config/progressReminders.ts | 7 ++++++- src/modules/logMenteeJoin.ts | 2 +- src/modules/postNews.ts | 7 +++++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/config/progressReminders.ts b/src/config/progressReminders.ts index 188623c..3a1afe6 100644 --- a/src/config/progressReminders.ts +++ b/src/config/progressReminders.ts @@ -12,7 +12,12 @@ interface Channel { } const nhcarriganMentorshipChannels: Array = [ - + { + channelId: "1400630073010163792", + createThread: true, + name: "accountability", + roleId: "1400588705273745550", + }, ]; const freeCodeCampSprintChannels: Array = [ diff --git a/src/modules/logMenteeJoin.ts b/src/modules/logMenteeJoin.ts index 4d26952..6708d13 100644 --- a/src/modules/logMenteeJoin.ts +++ b/src/modules/logMenteeJoin.ts @@ -46,7 +46,7 @@ export const logMenteeJoin = async( 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! `, +If that is correct, you should ping Naomi **with your GitHub username** to grant your role and begin onboarding! `, }); await logger.metric("processed_mentee_join", 1, { user: member.id }); }; diff --git a/src/modules/postNews.ts b/src/modules/postNews.ts index 86c5477..f42b5cd 100644 --- a/src/modules/postNews.ts +++ b/src/modules/postNews.ts @@ -123,6 +123,13 @@ const postHackerNews = async(amari: Amari): Promise => { } await Promise.all( latestPosts.map(async(post) => { + if ( + hasNaughtyWords(post.title) + || hasNaughtyWords(post.contentSnippet) + || hasNaughtyWords(post.content) + ) { + return; + } const sent = await channel.send(post.link); if (channel.type === ChannelType.GuildAnnouncement) { await sent.crosspost();