mirror of
https://github.com/janderedev/automod.git
synced 2024-12-22 10:45:27 +00:00
workaround for mongodb being wack
This commit is contained in:
parent
5bf7852f22
commit
51fb5dc25e
|
@ -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 } },
|
||||
|
|
Loading…
Reference in a new issue