1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-12-25 23:15:38 -05:00

I called it. I knew it was going to break it.

This commit is contained in:
AnxietyisReal 2023-07-08 00:03:12 +10:00
parent 83ce7db7c3
commit 5dec21ad85

View File

@ -28,7 +28,7 @@ export default {
},
leaderboard: ()=>{
const data = JSON.parse(readFileSync(path.join('./src/database/dailyMsgs.json'), 'utf8')).map((x: Array<number>, i: number, a: any) => {
return x[1] - (a[i - 1] || [][1] || x[1])
return x[1] - ((a[i - 1] || [])[1] || x[1])
}).slice(1).slice(-60);
// handle negative days