Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const myDiscriminator = ["6666", "9999", "1111", "4444", "0123", "1234", "2222", "3333", "7777", "8888", "0511", "5110", "5555", "5050", "6060", "0012", "7070", "9090", "1000", "8080", "3030", "4040", "2121", "2020", "0001", "0002", "6969", "0003", "0004", "0005", "0006", "0007", "0008", "0009", "2169", "6921", "0021", "0690", "0210", "1010", "2100", "0069", "6900"];
- const Discord = require('discord.js');
- const bot = new Discord.Client({fetchAllMembers: true});
- const password = process.env.PASS;
- const token = process.env.TOKEN;
- bot.login(token);
- function changeDiscriminator() {
- if (myDiscriminator.includes(bot.user.discriminator.toString()))
- return console.log("Discriminator Loaded: " + bot.user.discriminator);
- try {
- const us = bot.users.find(u => u.discriminator === bot.user.discriminator && u.username !== bot.user.username && !u.bot).username;
- console.log(Date.now(), "Username Loaded: " + us);
- bot.user.setUsername(us, password).then((u) => {
- console.log(Date.now(), "Username: " + u.username, "Discriminator: " + u.discriminator);
- setTimeout(changeDiscriminator, 8640 * 10000);
- }).catch((err) => {
- console.log(Date.now(), "An error occurred. Trying again in sixty (60) seconds.");
- setTimeout(changeDiscriminator, 8640 * 10000)
- });
- } catch(e) {
- console.log(Date.now(), `[${e}] Trying again in 30 seconds.`);
- setTimeout(changeDiscriminator, 8640 * 10000);
- }
- }
- bot.once("ready", () => {
- console.log(Date.now(), "Started with " + bot.users.size + " users.");
- changeDiscriminator();
- if(myDiscriminator.includes(bot.user.discriminator)) {
- console.log(`I successfully got the discrim ${bot.user.discriminator}!`)
- process.exit();
- }
- });
Add Comment
Please, Sign In to add comment