debug events already declared
This commit is contained in:
2 files changed
+3
-2
No files matched your search
+2
-1
@@ -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
@@ -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": {
|
||||
|
||||
Reference in new issue
Block a user