npm.io
1.1.0 • Published 4 years ago

discord-password-login

Licence
ISC
Version
1.1.0
Deps
1
Size
2 kB
Vulns
23
Weekly
0

discord-password-login

This is a module for getting discord user account token from email and password for those who are too lazy to grab token from the Network tab in devtools.

Usage

Using this module is very simple and easy, here is an example using Eris:

const Eris = require("eris");
const login = require("discord-password-login");
login("user@example.com", "password123").then(token => {
    const client = new Eris(token);
    client.on("ready", () => {
        console.log("I'm ready!");
    });
    client.on("messageCreate", (msg) => {
        console.log("I have recieved a message! %s", msg.content);
    });
    client.connect();
});

Credits

Ecolipsy and his showerthoughts and lazyness to grab token for every time.

Keywords