should be setINterval not settimeout

merge-requests/1/merge
Matthew 2019-10-28 00:34:42 -04:00
parent 79dea2e413
commit 92f2ca71da
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ import { Client } from '..';
import { RichEmbed } from '../class'; import { RichEmbed } from '../class';
export default function checkLock(client: Client) { export default function checkLock(client: Client) {
setTimeout(async () => { setInterval(async () => {
try { try {
const moderations = await client.db.Moderation.find(); const moderations = await client.db.Moderation.find();
moderations.forEach(async (moderation) => { moderations.forEach(async (moderation) => {