Small refactors that improve memory usage and code cleanliness #30

Merged
ElZeckos merged 4 commits from fix/refactor into main 2026-04-15 21:51:04 +02:00
Owner

TLDR;
Small refactors that improve memory usage and code cleanliness without changing behavior.

Small refactors that improve memory usage and code cleanliness without changing behavior.

Created a shared REST module to avoid duplicate Discord API clients.
Cached WebhookClients in bridge handler to prevent memory bloat.
Restored echo prevention with bounded Map (auto-expires after 5s).
Added better error logging for guild events and command registration.
Simplified README by removing redundant content.

@ElZeckos Test before merging this PR to main and release it.

TLDR; Small refactors that improve memory usage and code cleanliness without changing behavior. Small refactors that improve memory usage and code cleanliness without changing behavior. Created a shared REST module to avoid duplicate Discord API clients. Cached WebhookClients in bridge handler to prevent memory bloat. Restored echo prevention with bounded Map (auto-expires after 5s). Added better error logging for guild events and command registration. Simplified README by removing redundant content. @ElZeckos Test before merging this PR to main and release it.
fix/refactor critical/medium issues
All checks were successful
ci/woodpecker/push/check Pipeline was successful
ci/woodpecker/pr/check Pipeline was successful
e1aba0e2eb
Typo: Dockerfile
All checks were successful
ci/woodpecker/push/check Pipeline was successful
ci/woodpecker/pr/check Pipeline was successful
d1b4405ba4
docs: trim bloated readme
All checks were successful
ci/woodpecker/push/check Pipeline was successful
ci/woodpecker/pr/check Pipeline was successful
af57d8a6f4
phil changed title from Fix memory leak and clean up duplicate REST client to Small refactors that improve memory usage and code cleanliness 2026-03-25 19:39:20 +01:00
echo prevention now correctly tracks only the specific message IDs
All checks were successful
ci/woodpecker/push/check Pipeline was successful
ci/woodpecker/pr/check Pipeline was successful
3f84d34ce4
ElZeckos deleted branch fix/refactor 2026-04-15 21:51:04 +02:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ElZeckos/Temp-Voice-URC!30
No description provided.