discordtoken-tool
v1.0.2
Published
A simple and easy package to create and manage Discord bots using user accounts' tokens and the Discord API
Downloads
18
Maintainers
Readme
discordtoken-tool
Install discordtoken-tool
npm i discordtoken-tool
- Simple & easy to use 🎗️
- Event-based system 📡
- Bypass Discord's deletion of the bot after creation and ratelimits 🚀
- Automatically get 2FA code if enabled in the user account 📟
- Create bots using user account tokens 🤖
- Custom name format for the bots 📝
- Save tokens to a file 📁
- Proxy support 🛡️
At first install the discordtoken-tool package
const TokenCreateor = require("discordtoken-tool");
(async () => {
const creator = new TokenCreateor({
tokens: [ // the array of the user accounts tokens
{
/* [IMPORTANT] */
// If the user account doesn't have 2FA enabled, you need to add the password.
// If 2FA is enabled, you can add only the twoFactorKey.
token: "user account token",
twoFactorKey: "", // if the user account has 2FA enabled - add the key here
password: "", // if there are no 2FA enabled !
},
// token with 2FA enabled
{
token: "user account token",
twoFactorKey: "2FA key",
},
// token without 2FA
{
token: "user account token",
password: "user account password",
}
],
proxy: "", // the proxy to use - i use ipRoyal proxies
userAgent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.1 Safari/537.36", // the user agent to use - important to bypass discord security
enableIntents: true, // enable the intents - by default is true
nameFormat: "jamil_{0}", // the name format of the bots - {0} will be replaced with a random number between 1 and 9999
}, true);
var startedAt = Date.now();
creator.on("tokenCreated", data => {
// the token is created - you can do anything with the token
// for example save the token in database
});
creator.on("tokenInvalid", tokenData => {
// the user token is invalid - maybe the twofactor key is wrong or the password is wrong or the user banned
});
await creator.start({
loopCount: 20, // the count of the tokens to create, for example if you have 10 tokens and you want to create 100 bots you need to set this to 100, it will loop over the 10 tokens and create 100 bots
pathToSaveTokens: `./test.js`, // if you want to save the tokens in file
loopWait: 1000 * 10, // by default is 1000*10 ms - the time to wait between each loop
});
console.log(`Time elapsed: ${Date.now() - startedAt}ms`);
})();
const TokenCreateor = require("discordtoken-tool");
(async () => {
const createor = new TokenCreateor({
userAgent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.1 Safari/537.36",
});
const userData = {
token: "",
twoFactorKey: "",
password: "" // if there are no 2FA enabled !
} // the owner of the bot id you want to manage
const botID = "bot_id"; // the bot id you want to manage
createor.setSelectedToken(userData); // set the user data (IMPORTANT)
// get bot data
var bot = await createor.performApplicationAction({ botID, type: "get" });
console.log(bot);
// enable intents for the bot
await createor.enableIntents(botID);
// reset the bot token
var token = await createor.getBotToken(botID);
console.log(token);
// delete the bot
await createor.performApplicationAction({ botID, type: "delete" });
})()
Documentation
userData
object =>
{
"token": "", // the user account token
"twoFactorKey": "", // if the user account has 2FA enabled - add the key here
"password": "", // if there are no 2FA enabled !
}
- example of the created bot object =>
{
"token": "botToken",
"botID": "id of the bot",
"name": "name of the bot",
"userToken": "the user token who created the bot",
"haveTwoFactor": false // if the user account have 2FA enabled this will be true
}
start({ pathToSaveTokens, loopCount, loopWait })
method - to create the bots using accounts tokenspathToSaveTokens
- if you want to save the tokens in file after creating the bots add the path here - not requiredloopCount
- the count of the tokens to create - for example if you have 10 tokens and you want to create 100 bots you need to set this to 100, it will loop over the 10 tokens and create 100 botsloopWait
- the time to wait between each loop - by default is 10sec / 1000*10 ms
performApplicationAction({ botID, type })
method - to perform an action on the botbotID
- the bot id you want to manage - not required if the action type iscreate
type
- the action typeget
to get the bot data,delete
to delete the bot,create
to create a bot You can use it only in start() method
enableIntents(botID)
method - to enable intents for the botbotID
- the bot id you want to enable intents for
getBotToken(botID)
method - to get the bot token or reset itbotID
- the bot id you want to get the token for
setSelectedToken(userData)
method - to set the user data (only use if you are not used start() method)userData
- the user data object
on("tokenCreated", data => {})
event - to listen to the token created event it will work when the bot is created and only work if you are using the start() methoddata
the created bot object
on("tokenInvalid", tokenData => {})
event - to listen to the token invalid event it will work when the user token is invalid and only work if you are using the start() methodtokenData
the user data object
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Contact
- Email: [email protected]
- Instagram - @jamil_syrr
- Github
- Discord: 6qm