Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // function start
- // mentions = call mentions_timeline
- // tweets = process CSV and create a list of tweet messages
- // someVariable = mentions[0] status id (or nothing if there are no mentions, is a special case)
- // start loop
- // if tweets is empty
- // break
- // randomly decide whether or not to tweet
- // remove that tweet from tweets
- // if tweets is empty
- // break
- // mentions = mentions_timeline with the someVariable as the start ID (get mentions that are more recent that this start ID)
- // update someVariable if there are mentions, otherwise leave it the same
- // for each tweet in mentions
- // reply to the tweet with update_status (this posts a new tweet, you can include the status you are replying to)
- // remove the tweet from tweets
- // if tweets is empty
- // break
- // sleep for 5 minutes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement