Merge remote-tracking branch 'refs/remotes/origin/main'

This commit is contained in:
Saahil 2025-01-06 21:32:42 -05:00
commit 4418684538
No known key found for this signature in database
GPG key ID: 8A8B64515254CFC6

View file

@ -20,7 +20,7 @@ export function diffHighSeasLB(oldLB: Leaderboard, newLB: Leaderboard) {
);
continue;
}
const diff = entry.current_doubloons - oldEntry.current_doubloons;
let newRankMessage =
newLB.indexOf(entry) !== oldLB.findIndex((e) => e.id == entry.id)
@ -103,7 +103,7 @@ export function highSeasCron(app: ModifiedApp) {
})
.then(async (e) => {
for (const msg of msgs) {
//
//
await app.client.chat.postMessage({
channel: `C086HHP5J7K`,
text: msg,
@ -111,10 +111,10 @@ export function highSeasCron(app: ModifiedApp) {
});
await fetch(process.env.CANVAS_URL, {
method: "POST",
body: JSON.stringify({
text: msg
})
})
body: JSON.stringify({
text: msg,
}),
});
await new Promise((r) => setTimeout(r, 400));
}
});