Created
January 25, 2018 18:41
-
-
Save noirscape/9c8b9214a7cbdc9118e8202791b30c6f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Discriminator getter | |
# Gets a list of all discriminators that are the same as yours. | |
# Change to one of these to reroll your discriminator. | |
# NOTICE: NO WARRANTY, I AM NOT RESPONSIBLE FOR TRIGGER HAPPY STAFF BANNING YOU. | |
# SCRIPT IS GIVEN WITHOUT ANY SUPPORT. | |
# | |
# Use it on a regular bot. It _technically_ also works on a selfbot, but Selfbots are against the TOS. | |
import discord | |
from discord.ext import commands | |
token = '' # Set the bot token here | |
cur_discrim = '' # Set your current discriminator number here without the trailing hastag (#) | |
bot = commands.Bot(command_prefix=commands.when_mentioned_or( | |
'!'), | |
description='Discriminator') | |
@bot.event | |
async def on_ready(): | |
# CREDITS: Appu's selfbot discord for the original script. | |
all_users = ', '.join(list(set([str(m) for m in bot.get_all_members() if m.discriminator == cur_discrim]))) | |
print('All users with the same discriminator as me: {}'.format(all_users)) | |
exit(0) | |
bot.run(token) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment