Skip to content

Issues with bot #31

Description

@johncsuti

There are 2 noticeable issues with the bot one being
[Error: ENOENT: no such file or directory, scandir './events/'] {
errno: -2,
code: 'ENOENT',
syscall: 'scandir',
path: './events/'
}
[Error: ENOENT: no such file or directory, scandir './commands/'] {
errno: -2,
code: 'ENOENT',
syscall: 'scandir',
path: './commands/'
}
The fix for this is to replace ./events/ and ./commands/ with ./src/events/ and ./src/commands/ respectively

Finally there is this issue when you try to upload.
node:fs:585
handleErrorFromBinding(ctx);
^

Error: ENOENT: no such file or directory, open 'this'
at Object.openSync (node:fs:585:3)
at Object.readFileSync (node:fs:453:35)
at Object.exports.run (/home/container/src/commands/haste.js:12:42)
at module.exports (/home/container/src/events/message.js:14:9)
at Client.emit (node:events:390:28)
at MessageCreateAction.handle (/home/container/node_modules/discord.js/src/client/actions/MessageCreate.js:31:14)
at Object.module.exports [as MESSAGE_CREATE] (/home/container/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/home/container/node_modules/discord.js/src/client/websocket/WebSocketManager.js:384:31)
at WebSocketShard.onPacket (/home/container/node_modules/discord.js/src/client/websocket/WebSocketShard.js:444:22)
at WebSocketShard.onMessage (/home/container/node_modules/discord.js/src/client/websocket/WebSocketShard.js:301:10) {
errno: -2,
syscall: 'open',
code: 'ENOENT',
path: 'this'
}
The fix for this being setting dir_uploader to false in the config.json

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions