Metadata-Version: 1.1
Name: bottr
Version: 0.1.1
Summary: Simple Reddit Bot Library
Home-page: http://github.com/slang03/bottr
Author: Steven Lang
Author-email: steven.lang.mz@gmail.com
License: MIT
Description: =====
        bottr
        =====
        
        Bottr is supposed to make writing bots for reddit easy. It relies on the `Python Reddit API Wrapper`
        `PRAW <http://praw.readthedocs.io/en/latest/index.html>`_.
        
        
        Quick Start
        -----------
        
        The following is a quick example on how to monitor `r/AskReddit` for new comments. If a comment
        contains the string :code:`'banana'`, the bot replies :code:`'This comment is bananas'`
        
        .. code:: python
        
           import praw
        
           def parse_comment(comment):
               """Define what to do with a comment"""
               if 'banana' in comment.body:
                   comment.reply('This comment is bananas.')
        
           if __name__ == '__main__':
        
               # Get reddit instance with login details
               reddit = praw.Reddit(client_id='id',
                                    client_secret='secret'',
                                    password='botpassword',
                                    user_agent='Script by /u/...',
                                    username='botname')
        
               # Create Bot with methods to parse comments
               bot = CommentBot(reddit=reddit,
                               func_comment=parse_comment,
                               subreddits=['AskReddit'])
        
               # Start Bot
               bot.start()
        
               # Run bot for 10 minutes
               time.sleep(10*60)
        
               # Stop Bot
               bot.stop()
Keywords: reddit bot praw
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: MIT License
Classifier: Framework :: Robot Framework :: Library
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Internet
