debug last commit?
This commit is contained in:
3 files changed
+4
-3
No files matched your search
@@ -333,6 +333,7 @@ module.exports = {
|
|||||||
} else if (args[0].name == 'bot_admin_role') {
|
} else if (args[0].name == 'bot_admin_role') {
|
||||||
|
|
||||||
if (args[0].options[0].value == 'add') {
|
if (args[0].options[0].value == 'add') {
|
||||||
|
|
||||||
const roleId = args[0].options[1].value;
|
const roleId = args[0].options[1].value;
|
||||||
|
|
||||||
client.dbo.collection("guilds").updateOne({"server.serverID":GuildDB.serverID},{$push: {"server.botAdminRoles": roleId}}, function(err, res) {
|
client.dbo.collection("guilds").updateOne({"server.serverID":GuildDB.serverID},{$push: {"server.botAdminRoles": roleId}}, function(err, res) {
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "dayz-armbands",
|
"name": "dayz-armbands",
|
||||||
"version": "6.0.0",
|
"version": "6.0.1",
|
||||||
"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": {
|
||||||
|
|||||||
@@ -166,9 +166,9 @@ class DayzArmbands extends Client {
|
|||||||
if (this.config.Dev != 'PROD.') console.log('---- tick ----');
|
if (this.config.Dev != 'PROD.') console.log('---- tick ----');
|
||||||
this.activePlayersTick++;
|
this.activePlayersTick++;
|
||||||
|
|
||||||
await DownloadNitradoFile(`/games/${this.config.Nitrado.UserID}/noftp/dayzxb/config/DayZServer_X1_x64.ADM`, './logs/server-logs.ADM').then(async () => {
|
await DownloadNitradoFile(this, `/games/${this.config.Nitrado.UserID}/noftp/dayzxb/config/DayZServer_X1_x64.ADM`, './logs/server-logs.ADM').then(async () => {
|
||||||
await this.readLogs(this.config.GuildID).then(async () => {
|
await this.readLogs(this.config.GuildID).then(async () => {
|
||||||
if (this.activePlayersTick == 12) await HandleActivePlayersList(this.config.GuildID);
|
if (this.activePlayersTick == 12) await HandleActivePlayersList(this, this.config.GuildID);
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
this.logsUpdateTimer(); // restart this function
|
this.logsUpdateTimer(); // restart this function
|
||||||
|
|||||||
Reference in new issue
Block a user