From 01d0b84dc9a10c7a1ecd98bbadc754b7c1cb4199 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Mon, 25 Jul 2022 14:17:43 -0600 Subject: [PATCH] Another one from the phone bois --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 9ba31bf..3ccb36f 100644 --- a/index.js +++ b/index.js @@ -6,7 +6,7 @@ const Discord = require("discord.js"); const bot = new Discord.Client({intents: ["GuildMessages", "Guilds", "MessageContent"]}); const ring_hook = new Discord.WebhookClient({"url": config.discord.ring_webhook}); const notif_hook = new Discord.WebhookClient({"url": config.discord.notification_webhook}, {"allowedMentions": false}); -const pan_hook = new Discord.WebhookClient({"url": config.discord.pan_webhook}, {"allowedMentions": false}); +const pan_hook = new Discord.WebhookClient({"url": config.discord.pan_webhook}); let user = new SteamUser(); let tf2 = new TeamFortress2(user); @@ -36,7 +36,7 @@ tf2.on("systemMessage", (msg) => { tf2.on("itemBroadcast", (msg, username, wasDestruction, defindex) => { console.log(`[TF2] New Item :\nMsg:${msg}\nUser:${username}\nDestroy?:${wasDestruction}`); - pan_hook.send({content: wasDestruction?"@everyone":"",embeds: [ + pan_hook.send({content: "@everyone",embeds: [ { description: msg, color: wasDestruction?Discord.Colors.Red:Discord.Colors.Gold