[PR #1016] [MERGED] OCR filter tweaks and usual maintenance #1016

Closed
opened 2026-02-15 15:57:29 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/RPCS3/discord-bot/pull/1016
Author: @13xforever
Created: 2/2/2026
Status: Merged
Merged: 2/2/2026
Merged by: @13xforever

Base: masterHead: vnext


📝 Commits (5)

  • dd20099 do not look at attachment filenames in the anti-spam filter
  • cb7c1f5 increase cache time in ocr filter
  • 9629f4a tweak ocr filter with priority queue to try to minimize the latency
  • fce20ba update formatting for the fuzzy matched ocr filters
  • dcb8e72 upgrade packages

📊 Changes

14 files changed (+115 additions, -59 deletions)

View changed files

📝 Clients/CompatApiClient/CompatApiClient.csproj (+1 -1)
📝 Clients/GithubClient/GithubClient.csproj (+1 -1)
📝 CompatBot/CompatBot.csproj (+6 -6)
📝 CompatBot/Database/Providers/ContentFilter.cs (+14 -2)
📝 CompatBot/EventHandlers/AntiSpamMessageHandler.cs (+2 -1)
📝 CompatBot/EventHandlers/MediaScreenshotMonitor.cs (+28 -15)
📝 CompatBot/Ocr/Backend/AzureVision.cs (+4 -1)
📝 CompatBot/Ocr/Backend/BackendBase.cs (+1 -1)
📝 CompatBot/Ocr/Backend/Florence2.cs (+4 -1)
📝 CompatBot/Ocr/Backend/IOcrBackend.cs (+1 -1)
📝 CompatBot/Ocr/Backend/Tesseract.cs (+22 -23)
📝 CompatBot/Ocr/OcrProvider.cs (+2 -2)
📝 CompatBot/Utils/DiscordAttachmentComparer.cs (+19 -0)
📝 CompatBot/Utils/Extensions/DiscordClientExtensions.cs (+10 -4)

📄 Description

Trying to further reduce the filter latency


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/RPCS3/discord-bot/pull/1016 **Author:** [@13xforever](https://github.com/13xforever) **Created:** 2/2/2026 **Status:** ✅ Merged **Merged:** 2/2/2026 **Merged by:** [@13xforever](https://github.com/13xforever) **Base:** `master` ← **Head:** `vnext` --- ### 📝 Commits (5) - [`dd20099`](https://github.com/RPCS3/discord-bot/commit/dd20099685fc88a67d2c6ba5884b42b840406d4a) do not look at attachment filenames in the anti-spam filter - [`cb7c1f5`](https://github.com/RPCS3/discord-bot/commit/cb7c1f5d78ec55a4d6f0f272353f8ee6906d9c63) increase cache time in ocr filter - [`9629f4a`](https://github.com/RPCS3/discord-bot/commit/9629f4af3967f64bcf85b7ff0cb243d0a017f88b) tweak ocr filter with priority queue to try to minimize the latency - [`fce20ba`](https://github.com/RPCS3/discord-bot/commit/fce20ba645085829d6808b2357b784a8e4b79282) update formatting for the fuzzy matched ocr filters - [`dcb8e72`](https://github.com/RPCS3/discord-bot/commit/dcb8e7202a9b77665769fd2aa2feb7eb9388b6f8) upgrade packages ### 📊 Changes **14 files changed** (+115 additions, -59 deletions) <details> <summary>View changed files</summary> 📝 `Clients/CompatApiClient/CompatApiClient.csproj` (+1 -1) 📝 `Clients/GithubClient/GithubClient.csproj` (+1 -1) 📝 `CompatBot/CompatBot.csproj` (+6 -6) 📝 `CompatBot/Database/Providers/ContentFilter.cs` (+14 -2) 📝 `CompatBot/EventHandlers/AntiSpamMessageHandler.cs` (+2 -1) 📝 `CompatBot/EventHandlers/MediaScreenshotMonitor.cs` (+28 -15) 📝 `CompatBot/Ocr/Backend/AzureVision.cs` (+4 -1) 📝 `CompatBot/Ocr/Backend/BackendBase.cs` (+1 -1) 📝 `CompatBot/Ocr/Backend/Florence2.cs` (+4 -1) 📝 `CompatBot/Ocr/Backend/IOcrBackend.cs` (+1 -1) 📝 `CompatBot/Ocr/Backend/Tesseract.cs` (+22 -23) 📝 `CompatBot/Ocr/OcrProvider.cs` (+2 -2) 📝 `CompatBot/Utils/DiscordAttachmentComparer.cs` (+19 -0) 📝 `CompatBot/Utils/Extensions/DiscordClientExtensions.cs` (+10 -4) </details> ### 📄 Description Trying to further reduce the filter latency --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 15:57:29 -05:00
yindo closed this issue 2026-02-15 15:57:29 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: RPCS3/discord-bot#1016