3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

Fix multiline automod message match alerts being cut off

This commit is contained in:
Dragory 2020-04-03 16:54:57 +03:00
parent a10cb27757
commit af360eaa73
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -1336,10 +1336,13 @@ export class AutomodPlugin extends ZeppelinPlugin<TConfigSchema, ICustomOverride
const channel = this.guild.channels.get(matchResult.messageInfo.channelId);
const channelMention = channel ? verboseChannelMention(channel) : `\`#${message.channel_id}\``;
return trimPluginDescription(`
return (
trimPluginDescription(`
Matched ${this.getMatchedValueText(matchResult)} in message in ${channelMention}:
${messageSummary(message)}
`);
`) +
"\n" +
messageSummary(message)
);
} else if (matchResult.type === "textspam") {
const baseUrl = this.knub.getGlobalConfig().url;
const archiveUrl = this.archives.getUrl(baseUrl, archiveId);