feat: 強化租借身分組/稱呼與 AI 聊天的安全防護 - #532
Merged
Merged
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (2)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Team Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
- chat: sanitize_mentions 破壞 @everyone/@here 與使用者/身分組提及,送出時禁用 allowed_mentions,防止誘導 AI 觸發全體提及 - perk: 租借身分組改為最高優先度(bot top role 下一格,並處理 HTTPException) - perk: 新增 FORBIDDEN_WORDS 敏感詞篩選與撞名檢查(與其他成員 display_name 相同則拒絕),套用於 /custom_role 與 /chat_nick - config: server.config.json 新增 perk.forbidden 敏感詞清單(70 詞)
itousouta15
force-pushed
the
fix/perk-and-chat-safety
branch
from
September 6, 2026 18:28
09eaf6a to
f706f43
Compare
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.
變更內容
cog/chat.py — AI 聊天防誘導 @everyone
cog/perk.py — 租借身分組與稱呼
database/server.config.json
驗證