generated from nhcarrigan/template
feat: add support for dsd cohort channels
This commit is contained in:
+70
-9
@@ -4,15 +4,7 @@
|
||||
* @author Naomi Carrigan
|
||||
*/
|
||||
|
||||
/**
|
||||
* The channels to post standup reminders in.
|
||||
*/
|
||||
export const channels: Array<{
|
||||
channelId: string;
|
||||
roleId: string;
|
||||
name: string;
|
||||
}> = [
|
||||
{
|
||||
const freeCodeCampHackathonChannels = [ {
|
||||
channelId: "1382093555228606484",
|
||||
name: "red-script",
|
||||
roleId: "1382091453987029144",
|
||||
@@ -111,5 +103,74 @@ export const channels: Array<{
|
||||
channelId: "1382094311264616670",
|
||||
name: "grey-database",
|
||||
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,
|
||||
];
|
||||
|
||||
@@ -67,11 +67,7 @@ export const standup = async(
|
||||
filtered.map(async(channel) => {
|
||||
const sent = await channel.
|
||||
send({ allowedMentions: {
|
||||
roles: [
|
||||
channels.find((c) => {
|
||||
return c.channelId === channel.id;
|
||||
})?.roleId ?? channel.guildId,
|
||||
],
|
||||
parse: [ "roles" ],
|
||||
},
|
||||
content:
|
||||
`Good morning <@&${
|
||||
|
||||
Reference in New Issue
Block a user