added IGNORE_PRESENCE option

This commit is contained in:
Histmy 2020-11-18 23:54:05 +01:00
parent 92020326f5
commit df6a08e398

2
app.js
View File

@ -284,7 +284,7 @@ client.on('message', mes => {
});
client.on('presenceUpdate', (bef, aft) => {
if (aft.guild.id !== '555779161067749446') return;
if (aft.guild.id !== '555779161067749446' || process.env.IGNORE_PRESENCE) return;
if (!bef) bef = {status: 'offline', clientStatus: {}};
if (bef.clientStatus.mobile === 'online' && bef.clientStatus.desktop !== 'online') bef.status = 'onlinephone';