added IGNORE_PRESENCE option
This commit is contained in:
parent
92020326f5
commit
df6a08e398
2
app.js
2
app.js
@ -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';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user