use config for serverID
This commit is contained in:
3 files changed
+5
-3
No files matched your search
@@ -6,6 +6,7 @@ module.exports = {
|
||||
Version: package.version, // (major).(feature).(revision/bug/refactoring)
|
||||
Admins: ["362791661274660874", "329371697570381824"], // Admins of the bot
|
||||
ServerID: "1050215624053374976",
|
||||
Guild: "1019008625269801032",
|
||||
SupportServer: "https://discord.gg/KVFJCvvFtK", //Support Server Link
|
||||
Token: process.env.token || "", //Discord Bot Token
|
||||
Scopes: ["identify", "guilds", "applications.commands"], //Discord OAuth2 Scopes
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "dayz-armbands",
|
||||
"version": "5.9.1",
|
||||
"version": "5.9.2",
|
||||
"description": "A General Purpose Discord Bot for DayZ Servers.",
|
||||
"main": "index.js",
|
||||
"nodemonConfig": {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user