触发违禁词发送给主人,fix #37

This commit is contained in:
yeyang
2023-04-08 21:40:31 +08:00
parent d2c359ffa8
commit 49fcdb5208
2 changed files with 3 additions and 2 deletions

View File

@@ -85,9 +85,10 @@ export class NewGroupBannedWords extends plugin {
await punishments[type.penaltyType]()
const keyWordTran = await GroupBannedWords.keyWordTran(matchingWord)
const senderCard = e.sender.card || e.sender.nickname
e.reply([
common.sendMasterMsg([
`触发违禁词:${keyWordTran}\n`,
`触发者:${senderCard}(${e.user_id})\n`,
`触发群:${e.group_name}(${e.group_id})\n`,
`执行:${GroupBannedWords.penaltyTypeMap[type.penaltyType]}`
])
}

View File

@@ -43,7 +43,7 @@ export default new class newCommon {
return true
}
/** 发消息 */
/** 给主人发消息 */
async sendMasterMsg (msg) {
if (Config.Notice.notificationsAll) {
// 发送全部管理