mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-12-27 04:15:38 -05:00
Increase autosave interval for userLevels
This commit is contained in:
parent
0a752f11f9
commit
606dcff14c
@ -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}`);
|
||||||
|
Loading…
Reference in New Issue
Block a user