Added presence updates, typing and ban adds

This commit is contained in:
hydrabolt
2015-11-02 16:52:22 +00:00
parent 641683c9d9
commit 576715f531
8 changed files with 195 additions and 8 deletions

View File

@@ -10,8 +10,12 @@ a.on("message", m => {
if(m.content === "$$$")
a.reply(m, "I have you cached as being " + m.author.status);
});
a.on("serverMemberRemoved", (r, s) => {
console.log(r, s);
a.on("userTypingStart", (user, chan) => {
console.log(user.username + " typing");
});
a.on("userTypingStop", (user, chan) => {
console.log(user.username + " stopped typing");
});
a.login(process.env["discordEmail"], process.env["discordPass"]).catch((e)=>console.log(e));