debug money command / remove debug options

This commit is contained in:
SowinskiBraeden committed 2023-03-31 20:11:05 -07:00
1 parent 0bbddc991d
commit 73f4123220
3 files changed
+5 -5

No files matched your search

+3 -3
View File
@@ -22,6 +22,7 @@ class DayzArmbands extends Client {
this.commands = new Collection();
this.interactionHandlers = new Collection();
this.logger = new Logger(path.join(__dirname, "..", "logs/Logs.log"));
this.timer = this.config.Dev == 'PROD.' ? minute * 5 : minute / 4;
if (this.config.Token === "" || this.config.GuildID === "")
throw new TypeError(
@@ -543,7 +544,7 @@ class DayzArmbands extends Client {
async logsUpdateTimer() {
setTimeout(async () => {
console.log('---- tick ----')
if (this.config.Dev != 'PROD.') console.log('---- tick ----');
this.activePlayersTick++;
await this.downloadFile(`/games/${this.config.Nitrado.UserID}/noftp/dayzxb/config/DayZServer_X1_x64.ADM`, './logs/server-logs.ADM').then(async () => {
@@ -552,8 +553,7 @@ class DayzArmbands extends Client {
})
});
this.logsUpdateTimer(); // restart this function
// }, minute * 5); // restart every 5 minutes
}, minute / 4);
}, this.timer); // restart every 5 minutes during production
}
async connectMongo(mongoURI, dbo) {