Fix errors

Fixed `trolbot_1  | TypeError [ERR_INVALID_CALLBACK]: Callback must be a function. Received undefined`
This commit is contained in:
Julia 2021-09-05 20:06:00 +02:00 committed by GitHub
parent 4a25eee05d
commit 113c772d3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,7 +14,7 @@ const client = new Client({ intents: [Intents.FLAGS.GUILD_MESSAGES, Intents.FLAG
client.login(config.token);
if (!fs.existsSync(tempDir))
fs.mkdir(tempDir);
fs.mkdirSync(tempDir);
else
fs.readdir(tempDir, (err, files) =>
{