Advertisement
Guest User

Untitled

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