1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-17 12:21:00 -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 99b962db2e
commit c72721da50

View File

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