only do 1 server
This commit is contained in:
1 file changed
+3
-5
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user