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

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