Fix errors
Fixed `trolbot_1 | TypeError [ERR_INVALID_CALLBACK]: Callback must be a function. Received undefined`
This commit is contained in:
parent
4a25eee05d
commit
113c772d3d
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -14,7 +14,7 @@ const client = new Client({ intents: [Intents.FLAGS.GUILD_MESSAGES, Intents.FLAG
|
||||||
client.login(config.token);
|
client.login(config.token);
|
||||||
|
|
||||||
if (!fs.existsSync(tempDir))
|
if (!fs.existsSync(tempDir))
|
||||||
fs.mkdir(tempDir);
|
fs.mkdirSync(tempDir);
|
||||||
else
|
else
|
||||||
fs.readdir(tempDir, (err, files) =>
|
fs.readdir(tempDir, (err, files) =>
|
||||||
{
|
{
|
||||||
|
|
Reference in a new issue