1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-17 12:21:00 -05:00

Increase autosave interval for userLevels

This commit is contained in:
AnxietyisReal 2023-01-28 13:42:15 +11:00
parent 1ef6a37fc4
commit a62a567887

View File

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