mirror of
https://github.com/janderedev/automod.git
synced 2024-12-22 18:55:28 +00:00
G
This commit is contained in:
parent
65471712f7
commit
5fee526f8b
|
@ -67,8 +67,7 @@ async function antispam(message: Message): Promise<boolean> {
|
||||||
_id: ulid(),
|
_id: ulid(),
|
||||||
createdBy: null,
|
createdBy: null,
|
||||||
date: Date.now(),
|
date: Date.now(),
|
||||||
reason: `Automatic moderation rule triggered: More than ${rule.max_msg} messages per ${rule.timeframe} seconds.`
|
reason: `Automatic moderation rule triggered: More than ${rule.max_msg} messages per ${rule.timeframe} seconds.`,
|
||||||
+ (rule.message ?? ''),
|
|
||||||
server: message.channel?.server_id,
|
server: message.channel?.server_id,
|
||||||
type: InfractionType.Automatic,
|
type: InfractionType.Automatic,
|
||||||
user: message.author_id,
|
user: message.author_id,
|
||||||
|
|
Loading…
Reference in a new issue