mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 02:53:31 +01:00
Added presence updates, typing and ban adds
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user