refactor/disable admin command
This commit is contained in:
4 files changed
+3
-3
No files matched your search
@@ -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
@@ -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": {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user