Advertisement
1xK-2Xploit

DC AUTO MSG

Aug 18th, 2022
569
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.57 KB | None | 0 0
  1. import time
  2. from random import randint
  3. from selenium import webdriver
  4. from selenium.webdriver.common.keys import Keys
  5. from selenium.webdriver.support.ui import Select
  6. import os, shutil
  7.  
  8. driver = webdriver.Chrome()
  9.  
  10. driver.get("https://discord.com/login")
  11. time.sleep(6)
  12.  
  13. #--------------- Edit Here -------------------------------------------------------------
  14.  
  15. # Enter your account details here
  16. username = ''
  17. password = ''
  18. message = ''
  19. dalayed = 15 # seconds
  20.  
  21. channelURL = "https://discord.com/channels/666/666"
  22.  
  23. #-------------- Edit End ----------------------------------------------------------------
  24.  
  25. # Initialize and input email
  26. username_input = driver.find_element_by_name('email')
  27. username_input.send_keys(username)
  28.  
  29. # Initialize and input password
  30. password_input = driver.find_element_by_name('password')
  31. password_input.send_keys(password)
  32.  
  33. # Initialize and login
  34. login_button = driver.find_element_by_xpath('//*[@id="app-mount"]/div[2]/div/div/div/div/form/div/div/div[1]/div[2]/button[2]')
  35. login_button.click()
  36. print(">>Login Complete!")
  37. time.sleep(10)
  38.  
  39. driver.get(channelURL)
  40. print(">Opening The Server Link...")
  41. time.sleep(5)
  42.  
  43.  
  44. #number of time you wanna change
  45. x = 80
  46.  
  47. # Msg Sending
  48.  
  49. while(i <= x):
  50.     time.sleep(60*delayed)
  51.  
  52.  
  53.     msg_input = driver.find_element_by_xpath('//*[@id="app-mount"]/div[2]/div/div[2]/div/div/div/div/div[2]/div[2]/main/form/div/div/div/div[1]/div/div[3]/div[2]/div')
  54.  
  55.     msg_input.send_keys(message)
  56.     msg_input.send_keys(Keys.ENTER)
  57.     i+=1
  58.     print(">Number of Messages sent: "+str(i))
  59. print("Its Done!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement