only do 1 server

This commit is contained in:
SowinskiBraeden committed 2023-03-28 20:14:45 -07:00
1 parent ffec6279d8
commit d6b81ad922
1 file changed
+3 -5
+3 -5
View File
@@ -554,12 +554,10 @@ class DayzArmbands extends Client {
setTimeout(async () => { setTimeout(async () => {
this.activePlayersTick++; this.activePlayersTick++;
await this.downloadFile(`/games/${this.config.Nitrado.UserID}/noftp/dayzxb/config/DayZServer_X1_x64.ADM`, './logs/server-logs.ADM').then(() => { await this.downloadFile(`/games/${this.config.Nitrado.UserID}/noftp/dayzxb/config/DayZServer_X1_x64.ADM`, './logs/server-logs.ADM').then(async () => {
this.guilds.cache.forEach(async (guild) => { await this.readLogs('1019008625269801032').then(() => {
await this.readLogs(guild.id).then(() => {
if (this.activePlayersTick == 12) this.handleActivePlayersList(guild.id); if (this.activePlayersTick == 12) this.handleActivePlayersList(guild.id);
}); })
});
}); });
this.logsUpdateTimer(); // restart this function this.logsUpdateTimer(); // restart this function
}, minute * 5); // restart every 5 minutes }, minute * 5); // restart every 5 minutes