mirror of
https://github.com/System-End/slack-end.git
synced 2026-04-19 23:22:56 +00:00
Merge remote-tracking branch 'refs/remotes/origin/main'
This commit is contained in:
commit
4418684538
1 changed files with 6 additions and 6 deletions
|
|
@ -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));
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue