mirror of
https://github.com/System-End/slack-end.git
synced 2026-04-19 23:22:56 +00:00
update: overall log
This commit is contained in:
parent
ed88fd4ef6
commit
4923cf7842
1 changed files with 9 additions and 1 deletions
|
|
@ -20,6 +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)
|
||||
|
|
@ -102,12 +103,19 @@ export function highSeasCron(app: ModifiedApp) {
|
|||
})
|
||||
.then(async (e) => {
|
||||
for (const msg of msgs) {
|
||||
//
|
||||
await app.client.chat.postMessage({
|
||||
channel: `C086HHP5J7K`,
|
||||
text: msg,
|
||||
thread_ts: e.ts,
|
||||
});
|
||||
await new Promise((r) => setTimeout(r, 500));
|
||||
await fetch(process.env.CANVAS_URL, {
|
||||
method: "POST",
|
||||
body: JSON.stringify({
|
||||
text: msg
|
||||
})
|
||||
})
|
||||
await new Promise((r) => setTimeout(r, 400));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue