Advertisement
Guest User

Untitled

a guest
Feb 9th, 2018
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.69 KB | None | 0 0
  1. import praw
  2. import time
  3.  
  4.  
  5. def run():
  6.     print('Logging Into Reddit...')
  7.     # Create Bot with login and private key - username - password
  8.     bot = praw.Reddit(user_agent='AppNana Post Scheduler Bot v0.1', client_id='xyNB7BJhkza4hQ',
  9.                       client_secret='fNGdPVgk-WaPUqJvMEEKkauH8YY',
  10.                       username='ReiSixx9', password='')
  11.     print('Logged in')
  12.  
  13.     if time2.tm_hour == 12 and time2.tm_min == 0 and time2.tm_sec == 0:
  14.         sub_list = ['AppNana_Codes']
  15.     while 1:
  16.         for sub in sub_list1:
  17.             title = "d25367499"
  18.             message = ''
  19.             bot.subreddit(sub).submit(title, message)  # Code for submitting new post on Reddit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement