Now caches user status

This commit is contained in:
hydrabolt
2015-11-01 19:55:31 +00:00
parent b2a74be0f9
commit 641683c9d9
4 changed files with 81 additions and 59 deletions

View File

@@ -8,15 +8,7 @@ a.on("warn", (m) => console.log("[warn]", m));
a.on("message", m => {
if(m.content === "$$$")
a.reply(m,
"you have the roles:\n" + m.channel.server.rolesOfUser(m.author)
.map(v => "**"+v.name+"** "+v.id+"\n")
);
if(m.content === "$$")
a.reply(m, JSON.stringify(
m.channel.permissionsOf(m.author).serialise()
, null, 4
).replace(/true/g, "**true**"))
a.reply(m, "I have you cached as being " + m.author.status);
});
a.on("serverMemberRemoved", (r, s) => {
console.log(r, s);