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

@@ -13,10 +13,7 @@ a.on("warn", function (m) {
});
a.on("message", function (m) {
if (m.content === "$$$") a.reply(m, "you have the roles:\n" + m.channel.server.rolesOfUser(m.author).map(function (v) {
return "**" + 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**"));
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);