触发违禁词发送给主人,fix #37
This commit is contained in:
@@ -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]}`
|
||||
])
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ export default new class newCommon {
|
||||
return true
|
||||
}
|
||||
|
||||
/** 发消息 */
|
||||
/** 给主人发消息 */
|
||||
async sendMasterMsg (msg) {
|
||||
if (Config.Notice.notificationsAll) {
|
||||
// 发送全部管理
|
||||
|
||||
Reference in New Issue
Block a user