reddit: log sending PMs.
This commit is contained in:
parent
65f9e26fb8
commit
2beaecaab0
|
@ -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):
|
||||
|
|
Reference in a new issue