update ranking on server restart
This commit is contained in:
parent
4e45058d46
commit
14cbd75406
|
@ -27,6 +27,7 @@ class Ranks {
|
||||||
|
|
||||||
async initialize() {
|
async initialize() {
|
||||||
this.prevTop = await loadDailyTop();
|
this.prevTop = await loadDailyTop();
|
||||||
|
await this.updateRanking();
|
||||||
setInterval(this.updateRanking, 5 * MINUTE);
|
setInterval(this.updateRanking, 5 * MINUTE);
|
||||||
DailyCron.hook(this.resetDailyRanking);
|
DailyCron.hook(this.resetDailyRanking);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user