1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-09-29 08:20:59 -04:00

Increase autosave interval for userLevels

This commit is contained in:
AnxietyisReal 2023-01-28 13:42:15 +11:00
parent 75fd6437e1
commit c9d604b73c

View File

@ -86,7 +86,7 @@ export default class TClient extends Client {
this.punishments.initLoad();
this.bannedWords.initLoad();
this.bonkCount.initLoad();
this.userLevels.initLoad().intervalSave(15000).disableSaveNotifs();
this.userLevels.initLoad().intervalSave(30000).disableSaveNotifs();
const commandFiles = fs.readdirSync('src/commands').filter(file=>file.endsWith('.ts'));
for (const file of commandFiles){
const command = require(`./commands/${file}`);