Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user = bot.find_elements(By.XPATH, "//div[starts-with(@class,'member') and contains(@class, 'container') and @index]")
- for member in user:
- try:
- member.click()
- time.sleep(5)
- message = bot.find_element(By.XPATH, '//body[1]/div[1]/div[2]/div[1]/div[3]/div[1]/div[1]/div[1]/div[5]/div[1]/input[1]')
- time.sleep(5)
- message.send_keys('Automated' + Keys.ENTER)
- time.sleep(5)
- bot.get('https://discord.com/channels/982777146256818207/986367081496862760') #the page refreshes
- time.sleep(10)
- except NoSuchElementException:
- skip
Advertisement
Add Comment
Please, Sign In to add comment