fix/killfeed not updating #50
This commit is contained in:
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "dayzr-bot",
|
"name": "dayzr-bot",
|
||||||
"version": "13.3.24",
|
"version": "13.3.25",
|
||||||
"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": {
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ module.exports = {
|
|||||||
await UpdatePlayer(client, victimStat);
|
await UpdatePlayer(client, victimStat);
|
||||||
|
|
||||||
if (!channel) return;
|
if (!channel) return;
|
||||||
const webhook = await GetWebhook(this, NAME, guild.killfeedChannel);
|
const webhook = await GetWebhook(client, NAME, guild.killfeedChannel);
|
||||||
WebhookSend(client, webhook, { embeds: [killEvent]});
|
WebhookSend(client, webhook, { embeds: [killEvent]});
|
||||||
|
|
||||||
// if (client.exists(channel)) await channel.send({ embeds: [killEvent] });
|
// if (client.exists(channel)) await channel.send({ embeds: [killEvent] });
|
||||||
@@ -277,7 +277,7 @@ module.exports = {
|
|||||||
|
|
||||||
if (!channel) return;
|
if (!channel) return;
|
||||||
|
|
||||||
const webhook = await GetWebhook(this, NAME, guild.killfeedChannel);
|
const webhook = await GetWebhook(client, NAME, guild.killfeedChannel);
|
||||||
|
|
||||||
WebhookSend(client, webhook, { embeds: [killEvent] });
|
WebhookSend(client, webhook, { embeds: [killEvent] });
|
||||||
if (client.exists(receivedBounty) && client.exists(channel)) WebhookSend(client, webhook, { content: `<@${killerStat.discordID}>`, embeds: [receivedBounty] });
|
if (client.exists(receivedBounty) && client.exists(channel)) WebhookSend(client, webhook, { content: `<@${killerStat.discordID}>`, embeds: [receivedBounty] });
|
||||||
|
|||||||
Reference in new issue
Block a user