mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 10:03:31 +01:00
redo the client user presence stuff
This commit is contained in:
@@ -10,10 +10,17 @@ const { email, password, token, usertoken } = require('./auth.json');
|
||||
|
||||
client.login(token).then(atoken => console.log('logged in with token ' + atoken)).catch(console.log);
|
||||
|
||||
client.ws.on('send', console.log);
|
||||
|
||||
client.on('ready', () => {
|
||||
console.log('ready!');
|
||||
});
|
||||
|
||||
client.on('presenceUpdate', (o, n) => {
|
||||
if (o.username.startsWith('U'))
|
||||
console.log(o.username, o.presence.status, n.presence.status);
|
||||
});
|
||||
|
||||
client.on('channelCreate', channel => {
|
||||
console.log(`made ${channel.name}`);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user