Skip to content

Instantly share code, notes, and snippets.

@ahmed4end
Created February 19, 2021 22:29
Show Gist options
  • Save ahmed4end/3823442b87828debc00dcf3804428c71 to your computer and use it in GitHub Desktop.
Save ahmed4end/3823442b87828debc00dcf3804428c71 to your computer and use it in GitHub Desktop.
import random, re, pyautogui, time, pyperclip , sys
chat = pyperclip.paste()
chatNames = re.findall(r'(?<=[PM|AM]\r\n).*(?=\r\n)', chat)
chatNames = set(chatNames)-{'Shadow'}
print(chatNames)
for i in range(3):
time.sleep(1)
print('ready? ... '+str(i))
for i, name in enumerate(chatNames):
txt = f'@{name}'+''.join(random.choices(list('❤️🌹'), k=random.randint(1,5)))
pyperclip.copy(txt)
pyautogui.hotkey('CTRL', 'V')
pyautogui.press('ENTER')
if i!=0 and i%5==0:
time.sleep(random.randint(6,10)/10)
else:
time.sleep(random.randint(4,5)/10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment