Update readme example to use loginWithToken

This commit is contained in:
abalabahaha
2016-04-20 20:16:18 -07:00
parent 283c99dee8
commit 907f4f4b27

View File

@@ -30,11 +30,13 @@ var Discord = require("discord.js");
var mybot = new Discord.Client();
mybot.on("message", function(message) {
if(message.content === "ping")
if(message.content === "ping") {
mybot.reply(message, "pong");
}
});
mybot.login("email", "password");
mybot.loginWithToken("token");
// If you still need to login with email and password, use mybot.login("email", "password");
```
---