Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import praw
- r = praw.Reddit(client_id='xxxxxxxxxx',
- client_secret='xxxxxxxxxx',
- password='xxxxxxxxxx',
- user_agent='Jerry Thomas PM Replier 0.1 by /u/cwinthrop',
- username='JeremiahPThomas')
- for pm in r.inbox.unread():
- frm = pm.author
- sub = pm.subject
- print(frm)
- print(sub)
- repsub = 'Re: ' + sub
- msg = "Hi there, {author}!\n\n I can't begin to tell you how wonderful it was to receive a message from you!\n\nSadly, I am just a simple robot with a button for a brain, and was unable to read your message.\n\nBut it was still wonderful of you to send it, and for that I am very grateful.\n\nYour friend,\n\nJerry Thomas (deceased)\n\nP.S. If you have a question or concern about my operation, I would suggest contacting /u/CWinthrop as he maintains me."
- r.redditor("frm").message.reply("repsub", "msg")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement