mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 04:10:59 -05:00
I called it. I knew it was going to break it.
This commit is contained in:
parent
e92229b327
commit
141de1a3cd
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user