Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hi I have. issue with execute #77

Closed
VASAPOL opened this issue Aug 26, 2021 · 10 comments
Closed

Hi I have. issue with execute #77

VASAPOL opened this issue Aug 26, 2021 · 10 comments

Comments

@VASAPOL
Copy link

VASAPOL commented Aug 26, 2021

  • OS: macOS 11.5.1/Window 10
  • CPU architecture: x86

TypeError: Cannot read property 'execute' of undefined
at module.exports. (/Users/.../Downloads/discord-bot-master/index.js:45:12)
at module.exports.emit (node:events:394:28)
at MessageCreateAction.handle (/Users/.../Downloads/discord-bot-master/node_modules/discord.js/src/client/actions/MessageCreate.js:31:14)
at Object.module.exports [as MESSAGE_CREATE] (/Users/.../Downloads/discord-bot-master/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/Users/.../Downloads/discord-bot-master/node_modules/discord.js/src/client/websocket/WebSocketManager.js:384:31)
at WebSocketShard.onPacket (/Users/.../Downloads/discord-bot-master/node_modules/discord.js/src/client/websocket/WebSocketShard.js:444:22)
at WebSocketShard.onMessage (/Users/.../Downloads/discord-bot-master/node_modules/discord.js/src/client/websocket/WebSocketShard.js:301:10)
at WebSocket.onMessage (/Users/.../Downloads/discord-bot-master/node_modules/ws/lib/event-target.js:132:16)
at WebSocket.emit (node:events:394:28)
at Receiver.receiverOnMessage (/Users/.../Downloads/discord-bot-master/node_modules/ws/lib/websocket.js:834:20)

@TannerGabriel
Copy link
Owner

Hello @VASAPOL, can you please provide when you are getting this error message e.g. starting the bot or using a specific command?

@VASAPOL
Copy link
Author

VASAPOL commented Aug 26, 2021

when send command !play

@TannerGabriel
Copy link
Owner

So you are sending the play command using !play URL and the application exits immediately without the bot joining the channel? Is this also happening with other commands or just with play?

@VASAPOL
Copy link
Author

VASAPOL commented Aug 26, 2021

join and show an error

@TannerGabriel
Copy link
Owner

Could it be that you are not providing an URL to the command or don't have FFMPEG properly installed?

@VASAPOL
Copy link
Author

VASAPOL commented Aug 26, 2021

I already install FFMPEG.I tried by using pc and I can't get FFMPEG running and I change it to MacOS and issue found again.but at this time FFMPEG install successfully.

@TannerGabriel
Copy link
Owner

Ok, I will try to reproduce the bug and get back to you after that. Also, I recommend running the application using Docker, which automatically installs the needed tools like FFMPEG.

@VASAPOL
Copy link
Author

VASAPOL commented Aug 26, 2021

ok thanks

@aromeronavia
Copy link

Running it with docker works very smoothly btw 👍 not a single issue, just changing the config.json token and you are good to go @VASAPOL

@TannerGabriel
Copy link
Owner

I will close this issue since it should be fixed. If anyone still experiences such problems feel free to leave a comment here or reopen the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants