forgot to await again gg

This commit is contained in:
JandereDev 2021-12-05 14:19:26 +01:00
parent 3062d8e999
commit 9940d21e42
Signed by: Lea
GPG key ID: 5D5E18ACB990F57A

View file

@ -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 })) ?? {};