fix(core): resolve multiple bugs across plugins and middleware#92
Merged
fix(core): resolve multiple bugs across plugins and middleware#92
Conversation
added 2 commits
February 13, 2026 00:24
- Move hardcoded Tenor API key to config (TENOR_API_KEY) - Fix restrict_chat_member arg order in wordfilter, join_captcha (permissions as 3rd arg, opts as 4th); replace deprecated permission names with modern granular permissions - Fix UTF-8 iteration in flip.lua and aesthetic.lua using proper codepoint pattern instead of byte-level iteration - Replace blocking socket.sleep with copas.pause in purge plugin; batch message deletion using delete_messages API (groups of 100) - Fix callback_query handler creating empty chat context for inline buttons; now creates minimal valid context with sender's ID and private type - Fix config parser stripping inline # comments from quoted .env values - Implement SpamWatch API integration in blocklist middleware with Redis caching (was dead code stub)
# Conflicts: # src/plugins/admin/join_captcha.lua # src/plugins/admin/purge.lua # src/plugins/admin/wordfilter.lua
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
TENOR_API_KEY)restrict_chat_memberarg order in wordfilter and join_captcha; replace deprecated permission names with modern granular permissionssocket.sleepwithcopas.pausein purge plugin; batch message deletion usingdelete_messagesAPI (groups of 100)#comments from quoted.envvaluesTest plan
/gifsearch works (requiresTENOR_API_KEYin .env)/flipwith emoji input (e.g./flip hello 🌍 world)/aestheticwith mixed ASCII/Unicode text/purgein a group (should batch-delete, non-blocking)restrict_chat_membersignature).envvalues with#in quotes parse correctlySPAMWATCH_TOKENis set, verify SpamWatch checks work🤖 Generated with Claude Code