How do I find out the name of a Redditor in PRAW from a comment he made. For example, If a user comments something with the bot's keyword, they will reccive a PM. To send this the redditor's name must be obtained. I have tried using the following syntax but it doesnt work and shows an error message.
for comment in subreddit.stream.comments():
if keyphrase in comment.body:
plebman = comment.author
reddit.redditor(plebman).message("TEST", "BOT TESTING")
this error message appears
plebman = comment.author
^
TabError: inconsistent use of tabs and spaces in indentation
iI there any function to do so in PRAW ?