Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import praw
- import config
- def bot_login():
- print "Logging in..."
- r = praw.Reddit(username = config.username,
- password = config.password,
- client_id = config.client_id,
- client_secret = config.client_secret,
- user_agent = "HND recruiting bot v1")
- print "Logged in!"
- return r
- def run_bot(r):
- r.subreddit('overwatchlft').submit(config.postTitle, selftext= config.postText)
- print "Posted!"
- r = bot_login()
- run_bot(r)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement