mirror of
https://github.com/janderedev/automod.git
synced 2024-12-22 18:55:28 +00:00
TIME FOR ANOTHER ROUND OF SPAMMING COMMITS
This commit is contained in:
parent
5fee526f8b
commit
10e0f37a50
|
@ -37,7 +37,7 @@ export default {
|
||||||
inf = inf.sort((a, b) => b.date - a.date);
|
inf = inf.sort((a, b) => b.date - a.date);
|
||||||
msg += `**${await fetchUsername(inf[0].user)}** (${inf[0].user}): **${inf.length}** infractions\n`;
|
msg += `**${await fetchUsername(inf[0].user)}** (${inf[0].user}): **${inf.length}** infractions\n`;
|
||||||
msg += `\u200b \u200b \u200b \u200b \u200b ↳ Most recent warning: \`${inf[0].reason}\` `
|
msg += `\u200b \u200b \u200b \u200b \u200b ↳ Most recent warning: \`${inf[0].reason}\` `
|
||||||
+ `${inf[0].type == InfractionType.Manual && `(${await fetchUsername(inf[0].createdBy ?? '')})`}\n`;
|
+ `${inf[0].type == InfractionType.Manual ? `(${await fetchUsername(inf[0].createdBy ?? '')})` : ''}\n`;
|
||||||
};
|
};
|
||||||
|
|
||||||
message.reply(msg.substr(0, 1999));
|
message.reply(msg.substr(0, 1999));
|
||||||
|
|
Loading…
Reference in a new issue