2 Commits

Author SHA1 Message Date
naomi a632f2b924 feat: make fallback ping use guild instead of hardcoded value
Code Analysis / SonarQube (push) Failing after 17s
Node.js CI / Lint and Test (push) Successful in 38s
So we can reuse this bot for other utilities
2025-07-01 13:47:07 -07:00
naomi 5a8e56d188 feat: allow pinging roles 2025-07-01 13:39:45 -07:00
+10 -4
View File
@@ -66,17 +66,23 @@ export const standup = async(
await Promise.all( await Promise.all(
filtered.map(async(channel) => { filtered.map(async(channel) => {
const sent = await channel. const sent = await channel.
send( send({ allowedMentions: {
roles: [
channels.find((c) => {
return c.channelId === channel.id;
})?.roleId ?? channel.guildId,
],
},
content:
`Good morning <@&${ `Good morning <@&${
channels.find((c) => { channels.find((c) => {
return c.channelId === channel.id; return c.channelId === channel.id;
})?.roleId ?? "692816967895220344" })?.roleId ?? channel.guildId
}> It is time for your daily progress update. Please share the following in this thread: }> It is time for your daily progress update. Please share the following in this thread:
1️⃣ What did you accomplish yesterday? 1️⃣ What did you accomplish yesterday?
2️⃣ What are you working on today? 2️⃣ What are you working on today?
3️⃣ Are there any blockers or issues you need help with?`, 3️⃣ Are there any blockers or issues you need help with?` }).
).
catch(() => { catch(() => {
void logger.log( void logger.log(
"warn", "warn",