Reposts sent by the bot inside the reddit channels have always been a problem, but I have an idea to at least reduce them.
I would suggest to add the following feature to the bot:
When it tries to post an image, it calculates a checksum of the image and compares it against a list of collected checksums. If the checksum already exists, it won't post it. The collected checksums may of course be deleted after a certain period of time.
While that won't entirely solve the problem, it will surely reduce the amount of reposts and I would greatly appreciate that.
Thank you in advance
Tasks:
[ ] Save md5 checksum of each sent picture in redis
[ ] Create a config to allow the admins to set the cache time
[ ] Check the redis cache before each post, if the checksum of the picture to be set already exists
Reposts sent by the bot inside the reddit channels have always been a problem, but I have an idea to at least reduce them.
I would suggest to add the following feature to the bot:
When it tries to post an image, it calculates a checksum of the image and compares it against a list of collected checksums. If the checksum already exists, it won't post it. The collected checksums may of course be deleted after a certain period of time. While that won't entirely solve the problem, it will surely reduce the amount of reposts and I would greatly appreciate that.
Thank you in advance
Tasks: