From 2b9fda8d9c78345c8c778ecdbd079f0e1bc6ff4d Mon Sep 17 00:00:00 2001 From: yeyang <746659424@qq.com> Date: Mon, 8 Apr 2024 19:18:27 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E4=BF=AE=E6=94=B9=E8=BF=9D?= =?UTF-8?q?=E7=A6=81=E8=AF=8D=E5=9B=9E=E5=A4=8D=E6=94=B9=E4=B8=BA=E5=B1=8F?= =?UTF-8?q?=E8=94=BD=E8=AF=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/groupAdmin/groupBannedWords.js | 12 ++++++------ model/GroupBannedWords.js | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/groupAdmin/groupBannedWords.js b/apps/groupAdmin/groupBannedWords.js index 1ac5819..e4415d1 100644 --- a/apps/groupAdmin/groupBannedWords.js +++ b/apps/groupAdmin/groupBannedWords.js @@ -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 ? "精确" : "模糊"}匹配`) } -} \ No newline at end of file +} diff --git a/model/GroupBannedWords.js b/model/GroupBannedWords.js index 607e97d..028ae75 100644 --- a/model/GroupBannedWords.js +++ b/model/GroupBannedWords.js @@ -185,4 +185,4 @@ export default new class { Data.writeJSON(`${groupId}.json`, data, this.root) this.groupTitleCach.delete(groupId) } -} \ No newline at end of file +}()