Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- from time import ctime
- import praw
- r = praw.Reddit('/r/cryptospread auto dogecoin tipper by u/PacnetNetty v 1.0.')
- r.login("autodogetipper", "CENSORED")
- balance = 2000
- while True:
- print('Checking subbredit again')
- subreddit = r.get_subreddit('cryptospread')
- for submission in subreddit.get_new(limit=10):
- alreadytipped = False
- if balance >= 100:
- flat_comments = praw.helpers.flatten_tree(submission.comments)
- for comment in flat_comments:
- print('Iterating through comment (author: ' + comment.author.name + ')')
- if comment.author.name == "autodogetipper":
- print('already tipped')
- alreadytipped = True
- time.sleep(5)
- if not alreadytipped:
- commentS = "You get 100 doge for free for posting in /r/cryptospread! +/u/dogetipbot 100 doge ........ \nOwner: /u/PacnetNetty | [info](http://www.reddit.com/r/cryptospread/comments/31jrr0/bot_autodogetipper_bot_is_now_active/) | Tip me to add to my pool!"
- submission.add_comment(commentS)
- balance = balance - 100
- print('[' + ctime() + '] Tipped ' + submission.id + ', waiting 11 more minutes (alreadytipped- ' + str(alreadytipped) + ')')
- time.sleep(660)
- else:
- r.send_message('PacnetNetty', 'Out of DOGE', 'I am out of doge, please refill me')
- print('OUT OF DOGE')
- time.sleep(600)
Add Comment
Please, Sign In to add comment