feat: add support for dsd cohort channels
Code Analysis / SonarQube (push) Failing after 17s
Node.js CI / Lint and Test (push) Successful in 36s

This commit is contained in:
2025-07-14 17:44:55 -07:00
parent c0b21ce82f
commit fa1d627178
2 changed files with 162 additions and 105 deletions
+70 -9
View File
@@ -4,15 +4,7 @@
* @author Naomi Carrigan * @author Naomi Carrigan
*/ */
/** const freeCodeCampHackathonChannels = [ {
* The channels to post standup reminders in.
*/
export const channels: Array<{
channelId: string;
roleId: string;
name: string;
}> = [
{
channelId: "1382093555228606484", channelId: "1382093555228606484",
name: "red-script", name: "red-script",
roleId: "1382091453987029144", roleId: "1382091453987029144",
@@ -111,5 +103,74 @@ export const channels: Array<{
channelId: "1382094311264616670", channelId: "1382094311264616670",
name: "grey-database", name: "grey-database",
roleId: "1382091572602212622", roleId: "1382091572602212622",
} ];
const dallasSoftwareDevelopersCohortChannels = [
{
channelId: "1391165755772506283",
name: "team-aaryan-and-yoon",
roleId: "1391167307790684223",
},
{
channelId: "1391166792944058378",
name: "team-abhiram-and-elder",
roleId: "1391166984410107914",
},
{
channelId: "1391165816543641650",
name: "team-belle-and-raja",
roleId: "1391167708732719255",
},
{
channelId: "1391166263606247557",
name: "team-bethany-and-thomas",
roleId: "1391167529057259530",
},
{
channelId: "1391166382741258320",
name: "team-david-and-miguel",
roleId: "1391939082799812699",
},
{
channelId: "1391166223034744832",
name: "team-jerry-and-sean",
roleId: "1391940111398076578",
},
{
channelId: "1391165868670455878",
name: "team-joshua-and-nbuduisi",
roleId: "1391940912644358164",
},
{
channelId: "1391166586441830491",
name: "team-julie-and-thomas",
roleId: "1391942562595737660",
},
{
channelId: "1391166663738523659",
name: "team-khurram-and-noah",
roleId: "1391937252623388784",
},
{
channelId: "1391166519102144756",
name: "team-samuel-and-sagar",
roleId: "1391942830066499584",
},
{
channelId: "1391166878659121222",
name: "team-umar",
roleId: "1391943812464775228",
}, },
]; ];
/**
* The channels to post standup reminders in.
*/
export const channels: Array<{
channelId: string;
roleId: string;
name: string;
}> = [
...freeCodeCampHackathonChannels,
...dallasSoftwareDevelopersCohortChannels,
];
+1 -5
View File
@@ -67,11 +67,7 @@ export const standup = async(
filtered.map(async(channel) => { filtered.map(async(channel) => {
const sent = await channel. const sent = await channel.
send({ allowedMentions: { send({ allowedMentions: {
roles: [ parse: [ "roles" ],
channels.find((c) => {
return c.channelId === channel.id;
})?.roleId ?? channel.guildId,
],
}, },
content: content:
`Good morning <@&${ `Good morning <@&${