Make presences track users and guilds, emit them in presenceUpdate

This commit is contained in:
Amish Shah
2018-08-10 16:46:14 +01:00
parent fe8ece0192
commit 08eff66939
7 changed files with 32 additions and 13 deletions

View File

@@ -29,8 +29,9 @@ var count = 0;
process.on('unhandledRejection', console.log);
client.on('voiceStateUpdate', (a, b) => {
console.log(a ? a.channelID : null, b ? b.channelID : null, b.member.user.username);
client.on('presenceUpdate', (a, b) => {
if (b.userID !== '66564597481480192') return;
console.log(a ? a.status : null, b.status, b.user.username);
});
client.on('message', m => {