Mitigate /rquote duplicate selections #143

Merged
sirdog3355 merged 1 commit from feat/rquote-mitigate into dev 2025-11-22 19:40:16 -05:00
sirdog3355 commented 2025-11-22 19:38:03 -05:00 (Migrated from github.com)

So. Mitigation works like this:

  • The table of available quotes has a new filter to see if the message is in the rquote_used table. If it is, it doesn't get added to the list of messages that can be selected.
  • Once a message is selected, that message does get added to the table.
  • Once the total number of messages in the table meets or exceeds a configurable value, the oldest message on the table is automatically removed from the table, allowing it to be selected again in the future.

With a high enough configurable value it will functionally be as if duplication does not happen.

Closes #137

So. Mitigation works like this: - The table of available quotes has a new filter to see if the message is in the `rquote_used` table. If it is, it doesn't get added to the list of messages that can be selected. - Once a message is selected, _that_ message _does_ get added to the table. - Once the total number of messages in the table meets or exceeds a configurable value, the oldest message on the table is automatically removed from the table, allowing it to be selected again in the future. With a high enough configurable value it will functionally be as if duplication does not happen. Closes #137
Sign in to join this conversation.
No description provided.