1
0
Fork 0

reddit: log sending PMs.

This commit is contained in:
Casper V. Kristensen 2018-08-01 03:30:11 +02:00
parent 65f9e26fb8
commit 2beaecaab0
Signed by: caspervk
GPG key ID: B1156723DB3BDDA8

View file

@ -14,6 +14,7 @@ class Reddit(object):
self.praw = praw.Reddit(**self.config["reddit"])
def send_pm(self, recipient, title, text):
logger.info("Sending PM to u/%s", recipient)
return self.praw.redditor(recipient).message(title, text)
def submit_post(self, title, text, subreddit):