Skip to content

Instantly share code, notes, and snippets.

@wisheth
Last active February 13, 2020 00:26
Show Gist options
  • Save wisheth/8d01b971102e2723072debfc81a5dad5 to your computer and use it in GitHub Desktop.
Save wisheth/8d01b971102e2723072debfc81a5dad5 to your computer and use it in GitHub Desktop.
discord.py Tulpa Account Switcher
# discord.py Tulpa Account Switcher
# by Necross (Yume)
# Made with the Chalin system in mind
# This file changes your Discord avatar and username to that of the current fronter
# Avatars should be stored as a .jpg/.png file in a folder named "tulpas" in the same directory as this file
# (Image name should, obviously, be the tulpa's name with correct capitalization)
# \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/
# Use this with caution, as it is against Discord's ToS
# /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\
# Before you say anything, I know I put in too many input statements
import discord, asyncio
client = discord.Client()
@client.event
async def on_ready():
print("Logged into Discord account {0}".format(client.user))
user = input("What is the username of the current fronter? > ")
ext = input("""What is the extension for their avatar in the "tulpas" folder? (jpg/png) > """)
try: f = open("tulpas/{0}.{1}".format(user, ext), "rb")
except: print("""Looks like you don't have the avatar in the "tulpas" folder with the correct extension.""")
else:
tagID = input("Do you use a (p)refix, (s)uffix, or (n)either as a tag for your system account? > ").lower()
if tagID == "p":
tag = input("Please type it here > ")
username = "{1} {0}".format(user, tag)
elif tagID == "s":
tag = input("Please type it here > ")
username = "{0} {1}".format(user, tag)
avatar = f.read()
password = input("Type in your Discord password > ")
try: client.edit(password = password, username = username, avatar = avatar)
except: print("Looks like Discord ratelimited you or you typed your password in wrong. Sorry!")
else: print("Your username and avatar have been changed.")
finally:
print("All done. Logging out...")
client.close()
print("Logged out.")
token = input("Type in your Discord user token > ")
client.run(token)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment