dotnize / Dodong

An easy-to-setup music bot made with discord.js and discord-player
MIT License
60 stars 15 forks source link

Crashes when Trying to Play Music Docker #29

Open k37chup opened 2 years ago

k37chup commented 2 years ago

I have A raspberry Pi 3B running this setup. If i run it via NPM it runs and wokrs fine but Ultimately i would like to run this via Docker so i don't have to keep a Session open. I'm Not great at docker but again running it via npm outside of docker works fine .. then i build the docker and i get the below. Thanks!

--------- Dodong is ready! --------- /bot/node_modules/discord-player/node_modules/prism-media/src/util/loader.js:12 throw new Error(errorLog.join('\n')); ^

Error: Error: Cannot find module '/bot/node_modules/discord-player/node_modules/ @discordjs/opus/prebuild/node-v93-napi-v3-linux-arm-musl-1.2.2/opus.node' Require stack:

k37chup commented 2 years ago

I aparently have a newer version of the opus so the folder is different .. just copied the contents of the newer to node-v93-napi-v3-linux-arm-musl-1.2.2 and now it works .. not sure where i should have updated this in the code but its late so i didn't look too hard

MangoD33 commented 2 years ago

Plays random songs although the trackStart event emits the correct song name and URL. It appears to be random so far but happens only with playlists.