Removed now redundent loging

This commit is contained in:
Histmy 2021-06-26 15:06:57 +02:00
parent 6afeafcc0f
commit 7fb178a262

View File

@ -45,17 +45,6 @@ if (!process.env.IGNORE_PRESENCE) ziju();
const getRole = (status, server) => const getRole = (status, server) =>
server.roles.cache.find(role => role.name === `Status${status}`); 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 = { module.exports = {
// Změna rolí podle statusu a odeslání statusu // Změna rolí podle statusu a odeslání statusu
@ -63,11 +52,6 @@ module.exports = {
if (process.env.IGNORE_PRESENCE) return; if (process.env.IGNORE_PRESENCE) return;
const [statusPred, statusPo] = statusOnFoun(bef, aft); const [statusPred, statusPo] = statusOnFoun(bef, aft);
//#region temp hovno
if (logHovno(bef, aft)) return;
//#endregion
if (statusPred === statusPo) return; if (statusPred === statusPo) return;
const rolePred = getRole(statusPred, aft.guild); const rolePred = getRole(statusPred, aft.guild);
const rolePo = getRole(statusPo, aft.guild); const rolePo = getRole(statusPo, aft.guild);