Advertisement
Guest User

Untitled

a guest
May 8th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. import discord
  2. import requests
  3. import subprocess
  4. import threading
  5. import sys
  6. import os
  7. import asyncio
  8. client = discord.Client()
  9.  
  10. inEmail = input("email: ")
  11. inPassword = input("password: ")
  12. os.system('clear')
  13.  
  14.  
  15. helpMessage = ("+++++++++++++++++++++++++++++++++\n"
  16. "+type 'help' to get help +\n"
  17. "+type 'exit' to exit the script +\n"
  18. "type 'start' to start the attack+\n"
  19. "+++++++++++++++++++++++++++++++++"
  20. )
  21.  
  22. @client.event
  23. async def on_ready():
  24.  
  25. while 1:
  26. command = input(" # ")
  27.  
  28. if command == "start":
  29. count = int(input("how many times: "))
  30. spamText = input("what do you want to send? ")
  31. uName = input("insert target name: ")
  32. targetUser = [m for m in client.get_all_members() if m.name == uName]
  33. print(targetUser)
  34. if count > 0 and count <= 1000:
  35. for i in range(count):
  36. await client.send_message(targetUser[0], spamText)
  37. await asyncio.sleep(1)
  38.  
  39. if command == "exit":
  40. print("exiting script")
  41. await client.logout()
  42.  
  43. if command == "help":
  44. print(helpMessage)
  45.  
  46. return;
  47. client.run(inEmail, inPassword)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement