From 7fb178a262e3cb39df14f7526e01795ec8a380b0 Mon Sep 17 00:00:00 2001 From: Histmy Date: Sat, 26 Jun 2021 15:06:57 +0200 Subject: [PATCH] Removed now redundent loging --- modules/status.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/modules/status.js b/modules/status.js index c760c91..120f5ba 100644 --- a/modules/status.js +++ b/modules/status.js @@ -45,17 +45,6 @@ if (!process.env.IGNORE_PRESENCE) ziju(); const getRole = (status, server) => server.roles.cache.find(role => role.name === `Status${status}`); -//#region temp hovno -const logHovno = (before, after) => { - if (!after.guild.available) { - fetch("https://discord.com/api/webhooks/852964399459074088/5GZJSJYW30P0GmjXuLk23GwYANgaStS_-56GIIGaSCNmvIrzTHExMAojmqMH5VTQyod2", - { method: "POST", headers: { "Content-Type": "application/json" }, body: `{"content":"server neeeni:\nbefore: ${JSON.stringify(before)}\nafter: ${JSON.stringify(after)}}` }); - return true; - } - return false; -}; -//#endregion - module.exports = { // Změna rolí podle statusu a odeslání statusu @@ -63,11 +52,6 @@ module.exports = { if (process.env.IGNORE_PRESENCE) return; const [statusPred, statusPo] = statusOnFoun(bef, aft); - - //#region temp hovno - if (logHovno(bef, aft)) return; - //#endregion - if (statusPred === statusPo) return; const rolePred = getRole(statusPred, aft.guild); const rolePo = getRole(statusPo, aft.guild);