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)
|
Version: package.version, // (major).(feature).(revision/bug/refactoring)
|
||||||
Admins: ["362791661274660874", "329371697570381824"], // Admins of the bot
|
Admins: ["362791661274660874", "329371697570381824"], // Admins of the bot
|
||||||
ServerID: "1050215624053374976",
|
ServerID: "1050215624053374976",
|
||||||
|
Guild: "1019008625269801032",
|
||||||
SupportServer: "https://discord.gg/KVFJCvvFtK", //Support Server Link
|
SupportServer: "https://discord.gg/KVFJCvvFtK", //Support Server Link
|
||||||
Token: process.env.token || "", //Discord Bot Token
|
Token: process.env.token || "", //Discord Bot Token
|
||||||
Scopes: ["identify", "guilds", "applications.commands"], //Discord OAuth2 Scopes
|
Scopes: ["identify", "guilds", "applications.commands"], //Discord OAuth2 Scopes
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "dayz-armbands",
|
"name": "dayz-armbands",
|
||||||
"version": "5.9.1",
|
"version": "5.9.2",
|
||||||
"description": "A General Purpose Discord Bot for DayZ Servers.",
|
"description": "A General Purpose Discord Bot for DayZ Servers.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"nodemonConfig": {
|
"nodemonConfig": {
|
||||||
|
|||||||
@@ -568,11 +568,12 @@ class DayzArmbands extends Client {
|
|||||||
|
|
||||||
async logsUpdateTimer() {
|
async logsUpdateTimer() {
|
||||||
setTimeout(async () => {
|
setTimeout(async () => {
|
||||||
|
// console.log('---- tick ----')
|
||||||
this.activePlayersTick++;
|
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.downloadFile(`/games/${this.config.Nitrado.UserID}/noftp/dayzxb/config/DayZServer_X1_x64.ADM`, './logs/server-logs.ADM').then(async () => {
|
||||||
await this.readLogs('1019008625269801032').then(() => {
|
await this.readLogs(this.config.Guild).then(() => {
|
||||||
if (this.activePlayersTick == 12) this.handleActivePlayersList('1019008625269801032');
|
if (this.activePlayersTick == 12) this.handleActivePlayersList(this.config.Guild);
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
this.logsUpdateTimer(); // restart this function
|
this.logsUpdateTimer(); // restart this function
|
||||||
|
|||||||
Reference in new issue
Block a user