mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-16 14:11:50 +00:00
Fix multiline automod message match alerts being cut off
This commit is contained in:
parent
a10cb27757
commit
af360eaa73
1 changed files with 6 additions and 3 deletions
|
@ -1336,10 +1336,13 @@ export class AutomodPlugin extends ZeppelinPlugin<TConfigSchema, ICustomOverride
|
||||||
const channel = this.guild.channels.get(matchResult.messageInfo.channelId);
|
const channel = this.guild.channels.get(matchResult.messageInfo.channelId);
|
||||||
const channelMention = channel ? verboseChannelMention(channel) : `\`#${message.channel_id}\``;
|
const channelMention = channel ? verboseChannelMention(channel) : `\`#${message.channel_id}\``;
|
||||||
|
|
||||||
return trimPluginDescription(`
|
return (
|
||||||
|
trimPluginDescription(`
|
||||||
Matched ${this.getMatchedValueText(matchResult)} in message in ${channelMention}:
|
Matched ${this.getMatchedValueText(matchResult)} in message in ${channelMention}:
|
||||||
${messageSummary(message)}
|
`) +
|
||||||
`);
|
"\n" +
|
||||||
|
messageSummary(message)
|
||||||
|
);
|
||||||
} else if (matchResult.type === "textspam") {
|
} else if (matchResult.type === "textspam") {
|
||||||
const baseUrl = this.knub.getGlobalConfig().url;
|
const baseUrl = this.knub.getGlobalConfig().url;
|
||||||
const archiveUrl = this.archives.getUrl(baseUrl, archiveId);
|
const archiveUrl = this.archives.getUrl(baseUrl, archiveId);
|
||||||
|
|
Loading…
Add table
Reference in a new issue