generated from nhcarrigan/template
This commit is contained in:
@@ -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> = [
|
||||||
|
|
||||||
|
|||||||
@@ -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 });
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user