2.0.0 • Published 3 years ago

discord-login-gate v2.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

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
})
1.0.4

3 years ago

2.0.0

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago