Advertisement
ReiSixx9

Untitled

Feb 18th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.66 KB | None | 0 0
  1. import praw
  2. import time
  3.  
  4. def run():
  5.     print('Logging Into Reddit...')
  6.     bot = praw.Reddit(user_agent='AppNana Scheduler', client_id='',
  7.                       client_secret='',
  8.                       username='', password='')
  9.     print('Logged in')
  10.  
  11.     sub_list = ['AppNanas', 'Appnana_4_everybody', 'AppNanaCodeHack', 'AppnanaMoney', 'Appnanacodeexchange', 'AppnanaInviteCodes']
  12.     while 1:
  13.         for sub in sub_list:
  14.             title = "d25367499"
  15.             message = ''
  16.             bot.subreddit(sub).submit(title, message)                   #Code for submitting new post on Reddit
  17.             time.sleep(2400)
  18.  
  19. if __name__ == '__main__':
  20.     run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement