[PR #651] [MERGED] Channel history lookup overhaul #713

Closed
opened 2026-02-15 15:56:41 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/RPCS3/discord-bot/pull/651
Author: @13xforever
Created: 9/29/2020
Status: Merged
Merged: 9/29/2020
Merged by: @13xforever

Base: masterHead: vnext


📝 Commits (6)

  • c629d78 update deps
  • 65dd59f rewrite new build check logic
  • 8a4c8a6 dust off some fun code
  • db013a2 implement global message cache management
  • 5d06470 replace channel history calls to use caches
  • 48b4622 implement required method

📊 Changes

19 files changed (+338 additions, -44 deletions)

View changed files

📝 Clients/CompatApiClient/CompatApiClient.csproj (+1 -1)
📝 CompatBot/Commands/Attributes/LimitedToOfftopicChannel.cs (+2 -1)
📝 CompatBot/Commands/Attributes/LimitedToSpamChannel.cs (+2 -1)
📝 CompatBot/Commands/Explain.cs (+1 -1)
📝 CompatBot/Commands/Pr.cs (+1 -1)
📝 CompatBot/Commands/Vision.cs (+2 -1)
📝 CompatBot/CompatBot.csproj (+9 -9)
📝 CompatBot/Config.cs (+1 -0)
📝 CompatBot/EventHandlers/DiscordInviteFilter.cs (+1 -1)
📝 CompatBot/EventHandlers/GithubLinksHandler.cs (+1 -1)
CompatBot/EventHandlers/GlobalMessageCache.cs (+145 -0)
📝 CompatBot/EventHandlers/NewBuildsMonitor.cs (+26 -17)
📝 CompatBot/EventHandlers/PostLogHelpHandler.cs (+1 -1)
📝 CompatBot/EventHandlers/ProductCodeLookup.cs (+1 -1)
📝 CompatBot/EventHandlers/Starbucks.cs (+12 -6)
📝 CompatBot/Program.cs (+5 -0)
📝 CompatBot/Utils/BufferCopyStream.cs (+1 -1)
📝 CompatBot/Utils/Extensions/DiscordClientExtensions.cs (+2 -1)
CompatBot/Utils/FixedLengthBuffer.cs (+124 -0)

📄 Description

Trying to workaround the new Discord API call limits by keeping local cache of last N messages per channel


🔄 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/651 **Author:** [@13xforever](https://github.com/13xforever) **Created:** 9/29/2020 **Status:** ✅ Merged **Merged:** 9/29/2020 **Merged by:** [@13xforever](https://github.com/13xforever) **Base:** `master` ← **Head:** `vnext` --- ### 📝 Commits (6) - [`c629d78`](https://github.com/RPCS3/discord-bot/commit/c629d78b2c1b0d4cf4b84343d4fce742195c14a3) update deps - [`65dd59f`](https://github.com/RPCS3/discord-bot/commit/65dd59f2c24d3d5289c15159fea7dba4733e61ed) rewrite new build check logic - [`8a4c8a6`](https://github.com/RPCS3/discord-bot/commit/8a4c8a672294f5e230179576d39880f8a6d07b80) dust off some fun code - [`db013a2`](https://github.com/RPCS3/discord-bot/commit/db013a27f0d8ae9046577f2ae6367d02fe0c3c45) implement global message cache management - [`5d06470`](https://github.com/RPCS3/discord-bot/commit/5d064708ec84ab649f52f1a92b9c775f07a4cfd8) replace channel history calls to use caches - [`48b4622`](https://github.com/RPCS3/discord-bot/commit/48b46223ecb917cec19c0b996845c71f9a09441a) implement required method ### 📊 Changes **19 files changed** (+338 additions, -44 deletions) <details> <summary>View changed files</summary> 📝 `Clients/CompatApiClient/CompatApiClient.csproj` (+1 -1) 📝 `CompatBot/Commands/Attributes/LimitedToOfftopicChannel.cs` (+2 -1) 📝 `CompatBot/Commands/Attributes/LimitedToSpamChannel.cs` (+2 -1) 📝 `CompatBot/Commands/Explain.cs` (+1 -1) 📝 `CompatBot/Commands/Pr.cs` (+1 -1) 📝 `CompatBot/Commands/Vision.cs` (+2 -1) 📝 `CompatBot/CompatBot.csproj` (+9 -9) 📝 `CompatBot/Config.cs` (+1 -0) 📝 `CompatBot/EventHandlers/DiscordInviteFilter.cs` (+1 -1) 📝 `CompatBot/EventHandlers/GithubLinksHandler.cs` (+1 -1) ➕ `CompatBot/EventHandlers/GlobalMessageCache.cs` (+145 -0) 📝 `CompatBot/EventHandlers/NewBuildsMonitor.cs` (+26 -17) 📝 `CompatBot/EventHandlers/PostLogHelpHandler.cs` (+1 -1) 📝 `CompatBot/EventHandlers/ProductCodeLookup.cs` (+1 -1) 📝 `CompatBot/EventHandlers/Starbucks.cs` (+12 -6) 📝 `CompatBot/Program.cs` (+5 -0) 📝 `CompatBot/Utils/BufferCopyStream.cs` (+1 -1) 📝 `CompatBot/Utils/Extensions/DiscordClientExtensions.cs` (+2 -1) ➕ `CompatBot/Utils/FixedLengthBuffer.cs` (+124 -0) </details> ### 📄 Description Trying to workaround the new Discord API call limits by keeping local cache of last N messages per channel --- <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:56:41 -05:00
yindo closed this issue 2026-02-15 15:56:41 -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#713