Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import praw
- import time
- def run():
- print('Logging Into Reddit...')
- # Create Bot with login and private key - username - password
- bot = praw.Reddit(user_agent='AppNana Post Scheduler Bot v0.1', client_id='xyNB7BJhkza4hQ',
- client_secret='fNGdPVgk-WaPUqJvMEEKkauH8YY',
- username='ReiSixx9', password='')
- print('Logged in')
- if time2.tm_hour == 12 and time2.tm_min == 0 and time2.tm_sec == 0:
- sub_list = ['AppNana_Codes']
- while 1:
- for sub in sub_list1:
- title = "d25367499"
- message = ''
- bot.subreddit(sub).submit(title, message) # Code for submitting new post on Reddit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement