mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-16 22:21:51 +00:00
Include message id in censored message logs
This commit is contained in:
parent
23eb057780
commit
900f77aa14
2 changed files with 3 additions and 2 deletions
|
@ -41,7 +41,7 @@
|
||||||
|
|
||||||
"MESSAGE_SPAM_DETECTED": "🛑 {userMention(member)} spam detected in {channelMention(channel)}: {description} (more than {limit} in {interval}s)\n{archiveUrl}",
|
"MESSAGE_SPAM_DETECTED": "🛑 {userMention(member)} spam detected in {channelMention(channel)}: {description} (more than {limit} in {interval}s)\n{archiveUrl}",
|
||||||
"OTHER_SPAM_DETECTED": "🛑 {userMention(member)} spam detected: {description} (more than {limit} in {interval}s)",
|
"OTHER_SPAM_DETECTED": "🛑 {userMention(member)} spam detected: {description} (more than {limit} in {interval}s)",
|
||||||
"CENSOR": "🛑 Censored message from {userMention(user)} in {channelMention(channel)}: {reason}:\n```{messageText}```",
|
"CENSOR": "🛑 Censored message (`{message.id}`) from {userMention(user)} in {channelMention(channel)}: {reason}:\n```{messageText}```",
|
||||||
"CLEAN": "🚿 {userMention(mod)} cleaned **{count}** message(s) in {channelMention(channel)}\n{archiveUrl}",
|
"CLEAN": "🚿 {userMention(mod)} cleaned **{count}** message(s) in {channelMention(channel)}\n{archiveUrl}",
|
||||||
|
|
||||||
"CASE_CREATE": "✏ {userMention(mod)} manually created new **{caseType}** case (#{caseNum})",
|
"CASE_CREATE": "✏ {userMention(mod)} manually created new **{caseType}** case (#{caseNum})",
|
||||||
|
|
|
@ -110,6 +110,7 @@ export class CensorPlugin extends ZeppelinPlugin<ICensorPluginConfig> {
|
||||||
user: stripObjectToScalars(user),
|
user: stripObjectToScalars(user),
|
||||||
channel: stripObjectToScalars(channel),
|
channel: stripObjectToScalars(channel),
|
||||||
reason,
|
reason,
|
||||||
|
message: savedMessage,
|
||||||
messageText: disableCodeBlocks(deactivateMentions(savedMessage.data.content)),
|
messageText: disableCodeBlocks(deactivateMentions(savedMessage.data.content)),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -131,7 +132,7 @@ export class CensorPlugin extends ZeppelinPlugin<ICensorPluginConfig> {
|
||||||
delete embed.description;
|
delete embed.description;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
messageContent += " " + JSON.stringify(embeds);
|
messageContent += " " + JSON.stringify(embeds);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue