Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3.6
- import discord
- from sys import argv
- from time import sleep
- try:
- idd = 632649478288965703 # for testing
- typ = 1 # for testing
- #idd = int(argv[1])
- #typ = len(argv[2])
- except:
- print("{Script Error}")
- exit(0)
- client=discord.Client()
- @client.event
- async def on_ready():
- global idd, typ
- cont = True
- this = {}
- if typ == 2:
- try:
- this['id'] = idd
- member = client.get_user(idd)
- except:
- print('{"response":"User not found!"}')
- cont = False
- if cont == True:
- try:
- this['name'] = member.name
- this['discriminator'] = member.discriminator
- start_date = str(discord.utils.snowflake_time(idd))
- this['discord_start_date_day'] = start_date.split(" ")[0]
- this['discord_start_date_time_utc'] = start_date.split(" ")[1]
- this['is_blocking_unverifieds'] = str(member.is_blocked())
- this['is_bot'] = str(member.bot)
- this['avatar_hash'] = str(member.avatar)
- except Exception as e:
- print("""{"response**":"ScriptError: """+str(e)+""""}""")
- cont = False
- exit(0)
- if cont == True:
- print(str(this))
- sleep(.1)
- exit(0)
- if typ == 1:
- this['id'] = idd
- try:
- server = client.get_guild(idd)
- except Exception as EEE:
- print(f'{"response":"Error! Guild not found!", "error":"{str(EEE)}"}')
- cont = False
- exit(0)
- if server.name == None:
- print(f'{"response":"Guild not found!"}')
- cont = False
- exit(0)
- if cont == True:
- try:
- this['name'] = str(server.name)
- this['owner_id'] = str(server.owner_id)
- this['owner'] = str(server.owner)
- start_date = str(discord.utils.snowflake_time(int(idd)))
- this['creation_date_day'] = start_date.split(" ")[0]
- this['creation_date_time_utc'] = start_date.split(" ")[1]
- this['region'] = str(server.region)
- this['icon'] = str(server.icon)
- this['icon_url'] = str(server.icon_url)
- this['banner_url'] = str(server.banner_url)
- this['splash_url'] = str(server.splash_url)
- this['banner'] = str(server.banner)
- this['description'] = server.description
- this['boosters'] = str(server.premium_subscribers)
- this['is_unavailable'] = str(server.unavailable)
- this['current_rp_count'] = str(server.max_presences)
- this['afk_timeout'] = str(server.afk_timeout)
- this['member_count'] = str(server.member_count)
- this['mfa_level'] = str(server.mfa_level)
- this['verification_level'] = str(serververification_level)
- this['explicit_content_filter'] = str(server.explicit_content_filter)
- this['default_notifications'] = str(server.default_notifications)
- this['splash'] = str(server.splash)
- this['premium_tier'] = str(server.premium_tier)
- this['premium_subscription_count'] = str(server.verification_level)
- this['preferred_locale'] = str(server.preferred_locale)
- this['is_large'] = str(server.large)
- this['system_channel'] = str(server.system_channel)
- this['system_channel_flags'] = str(server.system_channel_flags)
- this['emoji_limit'] = str(server.emoji_limit)
- this['bitrate_limit'] = str(server.bitrate_limit)
- this['filesize_limit'] = str(server.filesize_limit)
- this['is_chunked'] = str(server.chunked)
- this['created_at_utc'] = str(server.created_at)
- this['roles'] = str(server.roles)
- this['voice_client'] = str(server.voice_client)
- this['categories'] = str(server.categories)
- this['text_channels'] = str(server.text_channels)
- this['voice_channels'] = str(server.voice_channels)
- this['all_channels'] = str(server.channels)
- this['features'] = str(server.features)
- this['members'] = str(server.members)
- this['emojis'] = str(server.emojis)
- except Exception as e:
- print("""{"response*":"ScriptError: """+str(e)+""""}""")
- cont = False
- if cont == True:
- print(str(this))
- sleep(.1)
- exit(0)
- try:
- client.run("token")
- except Exception as fuk:
- print('{'+'"fatal_error":'+f'"{fuk}"'+'}')
- sleep(.1)
- exit(0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement