Skip to content

Commit

Permalink
fix: 调整一下敏感词
Browse files Browse the repository at this point in the history
  • Loading branch information
yqchilde committed Mar 19, 2023
1 parent 6c0210b commit 7b8adb8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/chatgpt/chatgpt_sensitive.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ func initSensitiveWords() {
}
sensitiveWords = append(sensitiveWords, line)
}
log.Printf("[ChatGPT] 共加载%d个系统敏感词", len(sensitiveWords))

// insert system sensitive words
for _, word := range sensitiveWords {
Expand Down Expand Up @@ -125,6 +124,7 @@ func setSensitiveCommand(engine *control.Engine) {
ctx.ReplyTextAndAt("删除敏感词失败")
return
}
sensitiveWords = []string{}
initSensitiveWords()
ctx.ReplyTextAndAt("重置敏感词成功")
})
Expand Down
1 change: 0 additions & 1 deletion plugins/chatgpt/data/sensitive.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3058,7 +3058,6 @@ xi大大
革命论
革命
五四
运动
抗美
援朝
美援
Expand Down

0 comments on commit 7b8adb8

Please sign in to comment.