refactor/disable admin command

This commit is contained in:
SowinskiBraeden committed 2023-09-24 17:05:31 -07:00
1 parent 4416616c0a
commit b5dca5ad07
4 files changed
+3 -3

No files matched your search

+1
View File
@@ -476,6 +476,7 @@ module.exports = {
return interaction.send({ embeds: [new EmbedBuilder().setColor(client.config.Colors.Yellow).setDescription(msg)], flags: (1 << 6) });
} else if (args[0].name == 'disable-base-damage') {
return interaction.send({ embeds: [new EmbedBuilder().setColor(client.config.Colors.Green).setDescription('This command is disabled as it is currently in development.')] });
const preference = args[0].options[0].value;
const toggle = await DisableBaseDamage(client, preference);
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "dayzr-bot",
"version": "10.0.11",
"version": "10.0.12",
"description": "A General Purpose Discord Bot for DayZ Nitrado Servers.",
"main": "index.js",
"nodemonConfig": {
+1 -1
View File
@@ -26,7 +26,7 @@ module.exports = {
},
DetectCombatLog: async (client, guildId, data) => {
if (data.lastDamageDate == null) return;
if (!client.exists(data.lastDamageDate)) return;
const newDt = await client.getDateEST(data.time);
const diffSeconds = Math.round((newDt.getTime() - data.lastDamageDate.getTime()) / 1000);
-1
View File
@@ -2,7 +2,6 @@ const { finished } = require('stream/promises');
const concat = require('concat-stream');
const { Readable } = require('stream');
const FormData = require('form-data');
const path = require("path");
const fs = require('fs');
const maxRetries = 5;
const retryDelay = 5000; // 5 seconds