Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.92 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2. import discord
  3. import asyncio
  4. import requests as req
  5. from io import BytesIO
  6. from PIL import Image, ImageDraw, ImageOps
  7.  
  8. client = discord.Client()
  9.  
  10.  
  11. @client.event
  12. async def on_ready():
  13. print('BOT ONLINE, hcN*DWaN5(G)DVbMw*vr')
  14. print(client.user.name)
  15. print(client.user.id)
  16. print('------------')
  17. client.loop.create_task(status_task())
  18. await asyncio.sleep(10)
  19.  
  20.  
  21. async def status_task():
  22. while True:
  23. await client.change_presence(game=discord.Game(name="?help", type=1))
  24. await asyncio.sleep(10)
  25. await client.change_presence(game=discord.Game(name="SS'ing Cheaters.", type=1))
  26. await asyncio.sleep(10)
  27. await client.change_presence(game=discord.Game(name="Vape best ghost client!!!11", type=1))
  28. await asyncio.sleep(10)
  29. await client.change_presence(game=discord.Game(name="Drip best ghost client!!!11", type=1))
  30. await asyncio.sleep(5)
  31. await client.change_presence(game=discord.Game(name="Demon best ghost client!!!11", type=1))
  32. await asyncio.sleep(5)
  33. await client.change_presence(game=discord.Game(name="?help", type=1))
  34. await asyncio.sleep(10)
  35. await client.change_presence(game=discord.Game(name="SS'ing Cheaters.", type=1))
  36. await asyncio.sleep(10)
  37. await client.change_presence(game=discord.Game(name="Vape best ghost client!!!11", type=1))
  38. await asyncio.sleep(5)
  39. await client.change_presence(game=discord.Game(name="Drip best ghost client!!!11", type=1))
  40. await asyncio.sleep(5)
  41. await client.change_presence(game=discord.Game(name="Demon best ghost client!!!11", type=1))
  42. await asyncio.sleep(5)
  43.  
  44.  
  45. @client.event
  46. async def on_message(message):
  47. if message.content.lower().startswith('?pin'):
  48. if "493270492468215810" in [role.id for role in
  49. message.author.roles]:
  50. resp = req.get("http://144.217.10.177/do/not/touch/misc/newpin42384832hgdfhu.php")
  51. embed1 = discord.Embed(title='Pin \n', color=discord.Colour.red(), description='\n{}'.format(message.author.mention))
  52. code = embed1.add_field(name='Your code is:', value=resp.text)
  53. await client.send_message(client.get_channel('493241049892913191'), embed=embed1)
  54. await asyncio.sleep(30)
  55. await client.delete_message(message)
  56. await client.delete_message(code)
  57. else:
  58. codeperm = await client.send_message(message.channel,
  59. message.author.mention + ", You do not have permission.")
  60. await asyncio.sleep(30)
  61. await client.delete_message(message)
  62. await client.delete_message(codeperm)
  63. if message.content.lower().startswith('?download'):
  64. if "493270492468215810" in [role.id for role in
  65. message.author.roles]:
  66.  
  67. embeddwl = discord.Embed(title='<a:downloadgif:493857907427901448> Download ', color=discord.Colour.red(), description='\n{}'.format(message.author.mention))
  68. code = embeddwl.add_field(name='Download here: ', value='Coming soon.')
  69. download =await client.send_message(client.get_channel('493241049892913191'), embed=embeddwl)
  70. await asyncio.sleep(30)
  71. await client.delete_message(message)
  72. await client.delete_message(download)
  73. else:
  74. downloadperm = await client.send_message(message.channel,
  75. message.author.mention + ", You do not have permission.")
  76. await asyncio.sleep(30)
  77. await client.delete_message(message)
  78. await client.delete_message(downloadperm)
  79. if message.content.lower().startswith('?help'):
  80. embed = discord.Embed(title="Help", color=0x8b0000)
  81. embed.add_field(name='?pin', value='Gets your access code. \n(Only clients have permission)')
  82. embed.add_field(name='?download', value='Gets the download link. \n(Only clients have permission)')
  83. await client.send_message(message.channel, embed=embed)
  84. if message.content.lower().startswith("?cc"):
  85. if message.author.server_permissions.administrator:
  86. mgs = []
  87. async for x in client.logs_from(message.channel, limit = 50):
  88. mgs.append(x)
  89. await client.delete_message(x)
  90. else:
  91. pass
  92.  
  93.  
  94.  
  95. @client.event
  96. async def on_reaction_add(reaction, user):
  97. roleChannelId = '493289896144797697'
  98. guestrole = discord.utils.get(user.server.roles, id="494303240935047188")
  99.  
  100. if reaction.message.channel.id != roleChannelId:
  101. return
  102. if reaction.emoji == 'ð゚ムヘ':
  103. memberrole = discord.utils.get(user.server.roles, id="493246223168569344")
  104. await client.add_roles(user, memberrole)
  105. await asyncio.sleep(2)
  106. await client.remove_roles(user, guestrole)
  107.  
  108.  
  109.  
  110.  
  111. @client.event
  112. async def on_member_join(member):
  113. role = discord.utils.get(member.server.roles, id="494303240935047188")
  114. await client.add_roles(member, role)
  115. channel = client.get_channel("493271358101520388")
  116. url = req.get(member.avatar_url)
  117. avatar = Image.open(BytesIO(url.content))
  118. avatar = avatar.resize((130, 130));
  119. bigsize = (avatar.size[0] * 3, avatar.size[1] * 3)
  120. mask = Image.new('L', bigsize, 0)
  121. draw = ImageDraw.Draw(mask)
  122. draw.ellipse((0, 0) + bigsize, fill=255)
  123. mask = mask.resize(avatar.size, Image.ANTIALIAS)
  124. avatar.putalpha(mask)
  125. output = ImageOps.fit(avatar, mask.size, centering=(0.5, 0.5))
  126. output.putalpha(mask)
  127. output.save('avatar.png')
  128. avatar = Image.open('avatar.png')
  129. fundo = Image.open('bemvindo.png')
  130. fundo.paste(avatar, (40, 90), avatar)
  131. fundo.save('bv.png')
  132. await client.send_file(client.get_channel('493271358101520388'), 'avatar.png')
  133. await client.send_message(client.get_channel('493271358101520388'), member.mention + ', Welcome to Eyeᄚ - Screenshare Tool. check the '+client.get_channel('494297700221845514').mention + ' channel.')
  134. await client.send_message(client.get_channel('493289896144797697'), member.mention)
  135. embed = discord.Embed(title="<a:Bellzao:493844563622887426> Eyeᄚ - Verification", color=0x8b0000)
  136. embed.add_field(name='Click on the emoji below to validate your role.', value='Check the #about-us channel.')
  137. k = await client.send_message(client.get_channel('493289896144797697'), embed=embed)
  138. await client.add_reaction(k, emoji='ð゚ムヘ')
  139. await client.wait_for_reaction(['ð゚ムヘ'], message=k)
  140.  
  141.  
  142. @client.event
  143. async def on_member_remove(member):
  144. canal = client.get_channel("493271358101520388")
  145. msg = "{} has left/been kicked from the server.".format(member.mention)
  146. await client.send_message(canal, msg)
  147.  
  148.  
  149. client.run("NDkzMjQxNjc3MjU2MDY1MDM0.DoiGrQ.UeEJ7JyZY8-qzhY9kRd3SrVk0VI")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement