From 92f2ca71da3f3107f9ef0fbfbbbaead171452209 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Mon, 28 Oct 2019 00:34:42 -0400 Subject: [PATCH] should be setINterval not settimeout --- src/functions/checkLock.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions/checkLock.ts b/src/functions/checkLock.ts index 5a2fdf7..eb4e3f9 100644 --- a/src/functions/checkLock.ts +++ b/src/functions/checkLock.ts @@ -3,7 +3,7 @@ import { Client } from '..'; import { RichEmbed } from '../class'; export default function checkLock(client: Client) { - setTimeout(async () => { + setInterval(async () => { try { const moderations = await client.db.Moderation.find(); moderations.forEach(async (moderation) => {