0.0.1 • Published 1 year ago
discord-login v0.0.1
Login using different tokens
Example
const Discord = require('discord.js');
const client = new Discord.Client();
const gate = require('discord-login');
// Login your bot in your console.
// (Client, opts)
gate(client, {
echo: "+", // Optional. (* is the default.)
token: <Bot Token> // Can be a string or object.
})
Options
echo
- Character to echo when every key is pressed. You can add null to make invisible.
token
- If string, it will login directly weather a object must contain with name and the token string.
Example
// Create a json file.
{
"token-1": "Your Shining Token",
"token-2": "Your Shining Token"
}
• In your main file,
var tokens = require("./tokens.json");
gate(client, {
token: tokens
})