Skip to content

Instantly share code, notes, and snippets.

@noirscape
Created January 25, 2018 18:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noirscape/9c8b9214a7cbdc9118e8202791b30c6f to your computer and use it in GitHub Desktop.
Save noirscape/9c8b9214a7cbdc9118e8202791b30c6f to your computer and use it in GitHub Desktop.
# 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