1
0
Fork 0

main: add marking reddit PMs as read back in.

This commit is contained in:
Casper V. Kristensen 2018-07-31 18:03:54 +02:00
parent 3e8447f492
commit b0616cafbc
Signed by: caspervk
GPG key ID: B1156723DB3BDDA8

View file

@ -57,6 +57,7 @@ class DailyReleasesBot(object):
continue continue
self.generate(pm_recipient=message.author.name) self.generate(pm_recipient=message.author.name)
message.mark_read()
# clean requests cache after each successful generation so it doesn't grow indefinitely # clean requests cache after each successful generation so it doesn't grow indefinitely
self.cache.remove_expired_responses() self.cache.remove_expired_responses()