This bot listens to incoming comments and calls the provided method func_comment as
func_comment(comment, *func_comment_args) for each comment that is submitted in
the given subreddits.
Creates a bot that listens to comments in a list of subreddits and calls a given
function on each new comment.
['AskReddit', 'Videos', ...]
# Write a parsing method
if 'banana' in comment.body:
comment.reply('This comment is bananas.')
reddit = praw.Reddit(...) # Create a PRAW Reddit instance
bot = CommentBot(reddit=reddit, func_comment=parse)
Starts this bot in a separate thread. Therefore, this call is non-blocking.
It will listen to all new comments created in the subreddits list.
Stops this bot.
Returns as soon as all running threads have finished processing.