mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-12-26 11:45:37 -05:00
I called it. I knew it was going to break it.
This commit is contained in:
parent
83ce7db7c3
commit
5dec21ad85
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user