This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
Hi everyone!
I wrote a musical bot which worked perfectly on my computer. So, I tried to execute it from my Raspberry, and I have an error.
Error: Cannot find module 'opusscript'
Obviously, I made some researches about this module, and here I have a problem. My computer is a Windows, and my Raspberry is running with Linux, and it seems this is the cause of the issue. Reading all the error message, the problem is in this code line:
player.play(createAudioResource(url))
So, does it mean I have to re-configure all my Raspberry? Does it mean I have to change the code? Or can I solve it with a single import?
Try running npm install @discord.js/voice
on the pi
Subreddit
Post Details
- Posted
- 2 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/Discord_Bot...
Try running
npm install @discord.js/voice
on the pi