Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import fbchat
- import time
- client = fbchat.Client('100015067181427','testergesl0')
- friends = client.getUsers("Tomaž Črnigoj")
- friend = friends[0]
- while True:
- lastMessages = client.getThreadInfo(friend.uid,0)
- lastMessage = lastMessages[0].body
- print("\n", lastMessage)
- if lastMessage == "do the creep":
- sent = client.send(friend.uid, "BU!")
- imgurl = "http://img.wennermedia.com/article-leads-horizontal/penis-enlargement-52675d77-578d-4cf5-8ef7-e12d99bf587c.jpg"
- client.sendRemoteImage(friend.uid,message='hehehe', image=imgurl)
- #client.sendLocalImage(friend.uid,message='hihihi',image='/home/ablive/programiranje/getscreen/ruwetyet.png')
- time.sleep(5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement