Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Reddit: Checksum validation to reduce reposts #109

Open
3 tasks
DerBejijing opened this issue Jul 29, 2021 · 0 comments
Open
3 tasks

Reddit: Checksum validation to reduce reposts #109

DerBejijing opened this issue Jul 29, 2021 · 0 comments

Comments

@DerBejijing
Copy link

DerBejijing commented Jul 29, 2021

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
@Defelo Defelo transferred this issue from PyDrocsid/MorpheusHelper Jul 29, 2021
@Defelo Defelo changed the title Checksum validation to reduce reposts Reddit: Checksum validation to reduce reposts Jul 29, 2021
@Defelo Defelo added enhancement New feature or request priority: low labels Jul 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Status: Todo
Development

No branches or pull requests

2 participants