Charcoal-SE / SmokeDetector

Headless chatbot that detects spam and posts links to it in chatrooms for quick deletion.
https://metasmoke.erwaysoftware.com
Apache License 2.0
477 stars 182 forks source link

DeletionWatcher BUGFIX: Watch more than 1 post/question; Re-watch answers on reboot #13766

Closed makyen closed 4 weeks ago

makyen commented 1 month ago

This PR resolves

It also simplifies the process of loading the DeletionWatcher pickle, eliminating the need to make SE API requests for data about each of the posts being watched upon reboot.

In order to support the changes, the format of the DeletionWatcher pickle has been changed, but backward compatibility with pickles stored in the original format is maintained. Given that all of the data in the pickle becomes outdated after a couple of hours, the code for compatibility can be removed a few hours or days after this is merged and used in production.

Testing for this starts here.