2.0.0 • Published 3 years ago
discord-login-gate v2.0.0
Login using different tokens.
Example
const Discord = require('discord.js');
const client = new Discord.Client()
const gate = require('discord-login-gate')
// Login your bot in your console.
// (Client, otpions)
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 it invisible.)
token
- If string, it will login directly either a object must contain with token 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
})