Coding Global Background
Coding Global

discord username and discriminator auto claimer!

Archived 3 years ago
1
23 messages
2 members
3 years ago
Open in Discord
А
Анна

i'm kinda new to all this coding stuff i know this is against discord tos but lets be honest it would be kind of cool to have `import discord import asyncio client = discord.Client() @client.event async def on_ready(): print('Logged in as {0.user}'.format(client)) @client.event async def on_message(message): if message.author == client.user: return if message.content.startswith('!claim'): username = message.content.split()[1] discriminator = message.content.split()[2] try: await client.user.edit(username=username, discriminator=discriminator) await message.channel.send('Successfully claimed username and discriminator!') except Exception as e: await message.channel.send('Failed to claim username and discriminator. Reason: ' + str(e)) client.run('YOUR_TOKEN_HERE')`

Replies (24)