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 +}()