修改违禁词回复改为屏蔽词

This commit is contained in:
yeyang
2024-04-08 19:18:27 +08:00
parent 699634886d
commit 2b9fda8d9c
2 changed files with 7 additions and 7 deletions

View File

@@ -143,8 +143,8 @@ export class NewGroupBannedWords extends plugin {
e.group_id, word[3].trim(), word[1], word[2], e.user_id
)
e.reply([
"✅ 成功添加违禁词\n",
"违禁词:",
"✅ 成功添加屏蔽词\n",
"屏蔽词:",
await res.words,
`\n匹配模式:${res.matchType}\n`,
`处理方式:${res.penaltyType}`
@@ -174,8 +174,8 @@ export class NewGroupBannedWords extends plugin {
try {
const { words, matchType, penaltyType, addedBy, date } = GroupBannedWords.queryBannedWords(e.group_id, word)
e.reply([
"✅ 查询违禁词\n",
"违禁词:",
"✅ 查询屏蔽词\n",
"屏蔽词:",
await words,
`\n匹配模式:${matchType}\n`,
`处理方式:${penaltyType}\n`,
@@ -196,7 +196,7 @@ export class NewGroupBannedWords extends plugin {
for (const [ , v ] of groupBannedWords) {
const { matchType, penaltyType, addedBy, date, rawItem } = v
msg.push([
"违禁词:",
"屏蔽词:",
await GroupBannedWords.keyWordTran(rawItem),
`\n匹配模式:${GroupBannedWords.matchTypeMap[matchType]}\n`,
`处理方式:${GroupBannedWords.penaltyTypeMap[penaltyType]}\n`,
@@ -274,4 +274,4 @@ export class NewGroupBannedWords extends plugin {
let res = GroupBannedWords.setTitleFilterModeChange(e.group_id)
e.reply(`✅ 已修改匹配模式为${res ? "精确" : "模糊"}匹配`)
}
}
}

View File

@@ -185,4 +185,4 @@ export default new class {
Data.writeJSON(`${groupId}.json`, data, this.root)
this.groupTitleCach.delete(groupId)
}
}
}()