discord-token-shield
v10.4.19
Published
Protect Your Discord Token
Downloads
6
Maintainers
Readme
Protect Your Discord Token
Discord-Token Shield
Installation
$ npm i discord-token-shield
Configuration
Create a file, paste this code, and run the file.
var shield = require('discord-token-shield');
shield.SetToken("YOUR-BOT'S-TOKEN");
Usage
Functions: ChangeToken(), GetToken(), Login(), SetToken(), Destroy(),
Applying Package To App
Find Every 'client.login()' and 'bot.login()' function in your app and replace it with this
var shield = require('discord-token-shield');
shield.Destroy();
shield.Login();
Or
var shield = require('discord-token-shield');
client.destroy();
client.login(shield.GetToken());
For Instructions For Getting Your User Token Scroll Down To The Bottom
Paste The Following Code In Your Bot's Main File To Boost The Startup Time, Delete Most of Your 'bot.on('ready', () => ...' listeners.
WARNING: Install pm2 or forever and start your bot with either or the bot
will crash at the end of this code.
Change Token Usage
var shield = require('discord-token-shield');
shield.ChangeToken("YOUR_USER_TOKEN", "BOT'S_CLIENT_ID");
process.exit();
GetToken Usage
var shield = require('discord-token-shield/token');
shield.GetToken();