PyDrocsid / cogs

The official cog library used by PyDrocsid bots
GNU General Public License v3.0
13 stars 5 forks source link

Reddit: Checksum validation to reduce reposts #109

Open DerBejijing opened 3 years ago

DerBejijing commented 3 years ago

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: