Removed now redundent loging
This commit is contained in:
parent
6afeafcc0f
commit
7fb178a262
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user