debug money command / remove debug options
This commit is contained in:
3 files changed
+5
-5
No files matched your search
+1
-1
@@ -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
@@ -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": {
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in new issue
Block a user