debug events already declared

This commit is contained in:
SowinskiBraeden committed 2023-06-19 21:39:31 -07:00
1 parent a69f23ddc4
commit 537da3f670
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -71,6 +71,8 @@ module.exports = {
if (GuildDB.hasBotAdmin && interaction.member.roles.filter(e => GuildDB.botAdminRoles.indexOf(e) !== -1).length > 0) canUseCommand = true;
if (!canUseCommand) return interaction.send({ content: 'You don\'t have the permissions to use this command.' });
let events = GuildDB.events;
switch(args[0].name) {
case 'player-track':
@@ -86,7 +88,6 @@ module.exports = {
creationDate: new Date(),
};
let events = GuildDB.events;
events.push(event);
client.dbo.collection("guilds").updateOne({ "server.serverID": GuildDB.serverID }, {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "dayz-armbands",
"version": "8.0.4",
"version": "8.0.5",
"description": "A General Purpose Discord Bot for DayZ Servers.",
"main": "index.js",
"nodemonConfig": {