From 873b3ff6c936d08b4967ee6bed81899339ec7059 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Thu, 8 May 2025 00:30:04 -0600 Subject: [PATCH] Fix spam errors lol --- index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index e9e9455..b38cead 100644 --- a/index.js +++ b/index.js @@ -356,7 +356,7 @@ Image and product text are optional, but if they exist, they will be in the data */ -const handleDiscordGuilds = function (data) { +const handleDiscord = function (data) { const rawBody = data.data.body; const text = data.data.productText; const product_id_raw = data.data.raw @@ -554,8 +554,7 @@ function connectWebSocket() { const data = JSON.parse(rawData); switch (data.type) { case "iem-message": - handleDiscordGuilds(data); - handleDiscordDMs(data); + handleDiscord(data); break; case "internal-response":