fix/killfeed bounty payout
This commit is contained in:
1 parent
ddeeecb44d
commit
8f833b1dcb
2 files changed
+4
-4
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "dayzr-bot",
|
"name": "dayzr-bot",
|
||||||
"version": "11.5.1",
|
"version": "11.5.2",
|
||||||
"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": {
|
||||||
|
|||||||
@@ -200,13 +200,13 @@ module.exports = {
|
|||||||
|
|
||||||
|
|
||||||
if (!banking) {
|
if (!banking) {
|
||||||
banking = await createUser(interaction.member.user.id, GuildDB.serverID, GuildDB.startingBalance, client)
|
banking = await createUser(interaction.member.user.id, guildId, guild.startingBalance, client)
|
||||||
if (!client.exists(banking)) return client.sendInternalError(interaction, err);
|
if (!client.exists(banking)) return client.sendInternalError(interaction, err);
|
||||||
}
|
}
|
||||||
banking = banking.user;
|
banking = banking.user;
|
||||||
|
|
||||||
if (!client.exists(banking.guilds[GuildDB.serverID])) {
|
if (!client.exists(banking.guilds[guildId])) {
|
||||||
const success = addUser(banking.guilds, GuildDB.serverID, interaction.member.user.id, client, GuildDB.startingBalance);
|
const success = addUser(banking.guilds, guildId, interaction.member.user.id, client, guild.startingBalance);
|
||||||
if (!success) return client.sendInternalError(interaction, 'Failed to add bank');
|
if (!success) return client.sendInternalError(interaction, 'Failed to add bank');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user