mirror of
https://github.com/janderedev/automod.git
synced 2024-12-22 18:55:28 +00:00
forgot to await
again gg
This commit is contained in:
parent
3062d8e999
commit
9940d21e42
|
@ -24,7 +24,7 @@ client.on('message', async message => {
|
||||||
!message.channel?.server) return;
|
!message.channel?.server) return;
|
||||||
|
|
||||||
// Send message through anti spam check and custom rules
|
// Send message through anti spam check and custom rules
|
||||||
if (!antispam(message)) return;
|
if (!await antispam(message)) return;
|
||||||
checkCustomRules(message);
|
checkCustomRules(message);
|
||||||
|
|
||||||
let config: ServerConfig = (await client.db.get('servers').findOne({ 'id': message.channel?.server_id })) ?? {};
|
let config: ServerConfig = (await client.db.get('servers').findOne({ 'id': message.channel?.server_id })) ?? {};
|
||||||
|
|
Loading…
Reference in a new issue