Advertisement
Guest User

Untitled

a guest
Feb 18th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. // function start
  2. // mentions = call mentions_timeline
  3. // tweets = process CSV and create a list of tweet messages
  4. // someVariable = mentions[0] status id (or nothing if there are no mentions, is a special case)
  5.  
  6. // start loop
  7. // if tweets is empty
  8. // break
  9. // randomly decide whether or not to tweet
  10. // remove that tweet from tweets
  11. // if tweets is empty
  12. // break
  13. // mentions = mentions_timeline with the someVariable as the start ID (get mentions that are more recent that this start ID)
  14. // update someVariable if there are mentions, otherwise leave it the same
  15. // for each tweet in mentions
  16. // reply to the tweet with update_status (this posts a new tweet, you can include the status you are replying to)
  17. // remove the tweet from tweets
  18. // if tweets is empty
  19. // break
  20. // sleep for 5 minutes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement