Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import schedule
- import fbchat
- import time
- username='***'
- password='***'
- fb_gau='**'
- def job():
- client = fbchat.Client(username, password)
- friends = client.getUsers(fb_gau)
- friend = friends[0]
- sent = client.send(friend.uid, "Goodnight baby,")
- if sent:
- print("Message sent successfully!")
- schedule.every().day.at("14:55").do(job)
- while 1:
- schedule.run_pending()
- time.sleep(1)
Add Comment
Please, Sign In to add comment