Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import praw
- import time
- from datetime import datetime
- def time():
- current_time = datetime.now().strftime('%H:%M'
- def run():
- print('Logging Into Reddit...')
- bot = praw.Reddit(user_agent='AppNana Scheduler', client_id='',
- client_secret='',
- username='', password='')
- print('Logged in')
- sub_list = ['AppNanas', 'Appnana_4_everybody', 'AppNanaCodeHack', 'AppnanaMoney', 'Appnanacodeexchange', 'AppnanaInviteCodes']
- while 1:
- for sub in sub_list:
- title = "d25367499"
- message = ''
- bot.subreddit(sub).submit(title, message) #Code for submitting new post on Reddit
- print('Posted to r/{sub} at {current_time}')
- time.sleep(2400)
- if __name__ == '__main__':
- run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement