Created
          February 7, 2020 04:04 
        
      - 
      
 - 
        
Save dev4Fun/cd5bacb19ec292888eef5db190c638fd to your computer and use it in GitHub Desktop.  
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # bot.py | |
| import praw | |
| class RedditBot: | |
| def __init__(self, credentials: dict): | |
| self.credentials = credentials | |
| username = credentials['username'] | |
| self.credentials['user_agent'] = f"testscript by /u/{username}" | |
| self.reddit_client = praw.Reddit(**self.credentials) | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment