Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
techpixel committed May 12, 2024
1 parent 452c557 commit 2f33413
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/subroutines/events/powerHour.ts
Expand Up @@ -190,12 +190,14 @@ U06MWAFGYCX`;
const users = rawCell.split("\n");

for (const user of users) {
console.log(user);
/*
await app.client.chat.postMessage({
channel: user,
text: `Hey <@${user}>! Since we're unable to send you the pi clock, we'll get you something else instead: some FUDGE!!!! While I know you were excited about the clock, I promise you that this fudge is AMAZING (and straight from vermont!)`
});*/
try {
await app.client.chat.postMessage({
channel: user,
text: `Hey <@${user}>! Since we're unable to send you the pi clock, we'll get you something else instead: some FUDGE!!!! While I know you were excited about the clock, I promise you that this fudge is AMAZING (and straight from vermont!)\nIf you are recieving this message again, please ignore it.`
});
} catch (error) {
console.log("Failed for user: " + user + " with error: " + error);
}
}
});
}
Expand Down

0 comments on commit 2f33413

Please sign in to comment.