Token Caching now works

This commit is contained in:
Amish Shah
2015-12-14 18:06:03 +00:00
parent a122f0994e
commit 8f5722d242
7 changed files with 71 additions and 26 deletions

View File

@@ -7,7 +7,6 @@ var request = require("superagent");
client.on("ready", () => {
console.log("ready - " + client.internal.token);
});
client.on("autoRevive", () => {
@@ -28,7 +27,7 @@ client.on("message", msg => {
}
if (msg.content === "$perms") {
msg.reply(client.channels.get("id", msg.channel.id));
}
@@ -49,7 +48,7 @@ client.on("message", msg => {
console.log("INIT");
client.on("debug", console.log);
client.on("debug", msg => console.log("[debug]", msg));
client.login(process.env["ds_email"], process.env["ds_password"]).catch(console.log);