Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import discord
- import asyncio
- USERNAME = ''
- PASSWORD = ''
- TOKEN = ''
- class Bot(discord.Client):
- def __init__(self, **kwargs):
- super().__init__(**kwargs)
- self.loop.create_task(self.discrim_changer())
- async def discrim_changer(self):
- await asyncio.sleep(10)
- print('Started!')
- while True:
- try:
- print('Attempting to change discriminator...')
- users = list({x.name for x in self.get_all_members() if x.discriminator == self.user.discriminator})
- users.remove(self.user.name)
- if len(users) == 0:
- print('Unable to find suitable discriminator.')
- await self.logout()
- return
- await self.edit_profile(username=users[0], password=PASSWORD)
- await self.edit_profile(username=USERNAME, password=PASSWORD)
- await asyncio.sleep(10)
- print('Changed to {}!'.format(self.user.discriminator))
- if int(self.user.discriminator) < 100:
- await self.logout()
- return
- except:
- print('Failed :(')
- await asyncio.sleep(3650)
- bot = Bot()
- bot.run(TOKEN, bot=False)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement