diff --git a/bot/src/bot/modules/antispam.ts b/bot/src/bot/modules/antispam.ts index e859b76..c1e7822 100644 --- a/bot/src/bot/modules/antispam.ts +++ b/bot/src/bot/modules/antispam.ts @@ -267,6 +267,11 @@ const notifyPublicServers = async () => { try { logger.info(`Sending notification to owner of server ${serverConfig.id}`); + if (serverConfig.discoverAutospamNotify) { + logger.warn('This server already received the message'); + continue; + } + await dbs.SERVERS.update( { id: serverConfig.id }, { $set: { discoverAutospamNotify: true, antispamEnabled: true, allowBlacklistedUsers: false } },