fix/bounty view
This commit is contained in:
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -143,7 +143,7 @@ module.exports = {
|
|||||||
|
|
||||||
const newBalance = banking.guilds[GuildDB.serverID].balance - (totalBounty * 2);
|
const newBalance = banking.guilds[GuildDB.serverID].balance - (totalBounty * 2);
|
||||||
|
|
||||||
client.dbo.collection("users").updateOne({"user.userID":interaction.member.user.id},{$set:{[`user.guilds.${GuildDB.serverID}.balance`]:newBalance}}, (err, res) => {
|
await client.dbo.collection("users").updateOne({"user.userID":interaction.member.user.id},{$set:{[`user.guilds.${GuildDB.serverID}.balance`]:newBalance}}, (err, res) => {
|
||||||
if (err) return client.sendInternalError(interaction, err);
|
if (err) return client.sendInternalError(interaction, err);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -161,7 +161,7 @@ module.exports = {
|
|||||||
} else if (args[0].name == 'view') {
|
} else if (args[0].name == 'view') {
|
||||||
|
|
||||||
// TODO: only get players with boutnies.length greater than 0
|
// TODO: only get players with boutnies.length greater than 0
|
||||||
const activeBounties = await dbo.collection("players").find({
|
const activeBounties = await client.dbo.collection("players").find({
|
||||||
"bountiesLength": { $gt: 0 }
|
"bountiesLength": { $gt: 0 }
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "dayzr-bot",
|
"name": "dayzr-bot",
|
||||||
"version": "12.1.3",
|
"version": "12.1.4",
|
||||||
"description": "A General Purpose Discord Bot for DayZ Nitrado Servers.",
|
"description": "A General Purpose Discord Bot for DayZ Nitrado Servers.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"nodemonConfig": {
|
"nodemonConfig": {
|
||||||
|
|||||||
Reference in new issue
Block a user