debug money command / remove debug options

This commit is contained in:
SowinskiBraeden committed 2023-03-31 20:11:05 -07:00
1 parent 0bbddc991d
commit 73f4123220
3 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -99,7 +99,7 @@ module.exports = {
if (err) return client.sendInternalError(interaction, err); if (err) return client.sendInternalError(interaction, err);
}); });
} else banking = banking.banking; } else banking = banking.user;
if (!client.exists(banking.guilds[GuildDB.serverID])) { if (!client.exists(banking.guilds[GuildDB.serverID])) {
const success = addUser(banking.guilds, GuildDB.serverID, targetUserID, client, GuildDB.startingBalance); const success = addUser(banking.guilds, GuildDB.serverID, targetUserID, client, GuildDB.startingBalance);
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "dayz-armbands", "name": "dayz-armbands",
"version": "5.11.4", "version": "5.11.6",
"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": {
+3 -3
View File
@@ -22,6 +22,7 @@ class DayzArmbands extends Client {
this.commands = new Collection(); this.commands = new Collection();
this.interactionHandlers = new Collection(); this.interactionHandlers = new Collection();
this.logger = new Logger(path.join(__dirname, "..", "logs/Logs.log")); this.logger = new Logger(path.join(__dirname, "..", "logs/Logs.log"));
this.timer = this.config.Dev == 'PROD.' ? minute * 5 : minute / 4;
if (this.config.Token === "" || this.config.GuildID === "") if (this.config.Token === "" || this.config.GuildID === "")
throw new TypeError( throw new TypeError(
@@ -543,7 +544,7 @@ class DayzArmbands extends Client {
async logsUpdateTimer() { async logsUpdateTimer() {
setTimeout(async () => { setTimeout(async () => {
console.log('---- tick ----') if (this.config.Dev != 'PROD.') 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 () => {
@@ -552,8 +553,7 @@ class DayzArmbands extends Client {
}) })
}); });
this.logsUpdateTimer(); // restart this function this.logsUpdateTimer(); // restart this function
// }, minute * 5); // restart every 5 minutes }, this.timer); // restart every 5 minutes during production
}, minute / 4);
} }
async connectMongo(mongoURI, dbo) { async connectMongo(mongoURI, dbo) {