Guest User

Untitled

a guest
Nov 18th, 2018
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. # ---------------------------
  2. # bot login information
  3. # username: shartvix
  4. # pw: lamp$screen%eye!goat7dr
  5. # ---------------------------
  6.  
  7. import praw
  8. import time
  9.  
  10.  
  11. def invest_in_memes():
  12.  
  13. # reddit api login
  14. r = praw.Reddit(client_id='PNB7w59N7hGO-g',
  15. client_secret='nsX1E3v3vTsAW9fdpVK8jtwCFFo',
  16. username='shartvix',
  17. password='lamp$screen%eye!goat7dr',
  18. user_agent='shartingvix and trading memes')
  19.  
  20. meme_investor_bot = r.redditor('MemeInvestor_bot')
  21.  
  22. # list of memes already invested in
  23. meme_coin_balance = 0
  24. invested_memes = []
  25.  
  26. # the subreddit shartvix will live on
  27. sr = r.subreddit('memeeconomy')
  28.  
  29. for submission in sr.stream.submissions():
  30. post_time = submission.created_utc
  31. if (time.time() - post_time) < 1000 and submission.upvote_ratio >= .8 \
  32. and submission.score >= 5:
  33. print(submission.title)
  34. for comment in submission.comments:
  35. if comment.author == meme_investor_bot:
  36. print(comment.author)
  37. comment.reply("!balance")
  38.  
  39. invest_in_memes()
Add Comment
Please, Sign In to add comment