use config for serverID

This commit is contained in:
SowinskiBraeden committed 2023-03-30 13:26:03 -07:00
1 parent 6acff8f785
commit 84243a882a
3 files changed
+5 -3

No files matched your search

+3 -2
View File
@@ -568,11 +568,12 @@ class DayzArmbands extends Client {
async logsUpdateTimer() {
setTimeout(async () => {
// 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 () => {
await this.readLogs('1019008625269801032').then(() => {
if (this.activePlayersTick == 12) this.handleActivePlayersList('1019008625269801032');
await this.readLogs(this.config.Guild).then(() => {
if (this.activePlayersTick == 12) this.handleActivePlayersList(this.config.Guild);
})
});
this.logsUpdateTimer(); // restart this function