feat(qq): post-merge hardening + docs for the QQ bot bridge#126
Merged
Conversation
Follow-up to PR #121 (QQ bot bridge via qq-botpy). Code hardening (bridges/qq.py): - Image downloads moved off the async botpy event loop into loop.run_in_executor (new _qq_download_image_b64 helper). A synchronous urlopen in the on_message handler could block the event loop and its WebSocket heartbeat for up to 30s per image, risking a disconnect. - cmd_qq now matches the cmd_slack / cmd_telegram secret-handling standard: $QQ_SECRET (recommended) > REPL arg (deprecated; warns + scrubs history) > config. Env-supplied secrets are never persisted to config.json (the original PR wrote qq_secret to disk unconditionally). Adds /qq <appid> and /qq logout. Docs: - docs/guides/bridges.md: full QQ Bridge section (prerequisites, $QQ_SECRET setup, how-it-works, features, commands, auto-start); title + "all bridges" references updated. - docs/guides/security.md: QQ_SECRET / QQ_APPID env-var rows; bot-token and denylist sections include QQ. - .env.example: QQ_APPID / QQ_SECRET. - CONTRIBUTING.md: QQ added to the Bridges note (async botpy WebSocket). - README.md: QQ in the feature list, comparison table, and bridge tables; News trimmed to the latest 3 one-line entries (details in docs/news.md), with a new QQ release entry added to docs/news.md. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Follow-up to PR #121 (QQ bot bridge via qq-botpy).
Code hardening (bridges/qq.py):
Docs: