debug bot admin role config / combat log detection show attacker name not id
This commit is contained in:
3 files changed
+4
-3
No files matched your search
+1
-1
@@ -320,7 +320,7 @@ module.exports = {
|
||||
} else if (args[0].name == 'bot_admin_role') {
|
||||
|
||||
if (args[0].options[0].value == 'add') {
|
||||
const roleId = args[0].options[0].options[0].value;
|
||||
const roleId = args[0].options[1].value;
|
||||
|
||||
client.dbo.collection("guilds").updateOne({"server.serverID":GuildDB.serverID},{$push: {"server.botAdminRoles": roleId}}, function(err, res) {
|
||||
if (err) return client.sendInternalError(interaction, err);
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "dayz-armbands",
|
||||
"version": "5.12.2",
|
||||
"version": "5.12.3",
|
||||
"description": "A General Purpose Discord Bot for DayZ Servers.",
|
||||
"main": "index.js",
|
||||
"nodemonConfig": {
|
||||
|
||||
@@ -456,6 +456,7 @@ class DayzArmbands extends Client {
|
||||
time: data[1],
|
||||
player: data[2],
|
||||
playerID: data[3],
|
||||
attacker: data[5],
|
||||
attackerID: data[6]
|
||||
}
|
||||
|
||||
@@ -468,7 +469,7 @@ class DayzArmbands extends Client {
|
||||
let newDt = await this.getDateEST(info.time);
|
||||
|
||||
playerStat.lastDamageDate = newDt;
|
||||
playerStat.lastHitBy = info.attackerID;
|
||||
playerStat.lastHitBy = info.attacker;
|
||||
|
||||
if (playerStatIndex == -1) stats.push(playerStat);
|
||||
else stats[playerStatIndex] = playerStat;
|
||||
|
||||
Reference in new issue
Block a user