discord-php / DiscordPHP

An API to interact with the popular messaging app Discord
MIT License
999 stars 237 forks source link

Outdated version of DCA #142

Closed ghost closed 8 years ago

ghost commented 8 years ago

I'm getting a outdated version of DCA error when I try to play a mp3 file in a voice channel.

I've tried to update the DCA but that isn't working. What I've tried is: xgo -out builds/dca-v0.1.0 --targets=darwin/*,linux/amd64,linux/386 github.com/bwmarrin/dca/cmd/dca and: xgo -out builds/dca-v0.1.0 --targets=darwin/*,linux/amd64,linux/386 github.com/uniquoooo/dca/cmd/dca

and then copying the builds to vendor/team-reflex/discord-php/bin (I tried both build outputs but still I get this error).

I'm running on:

CentOS Linux release 7.2.1511 (Core)
go1.4.2
opus-1.1.2
ffmpeg version 2.6.8
PHP 7.0.9
ghost commented 8 years ago

My mistake. It turned out to be a permssion error. All the files in the vendor/team-reflex/discord-php/bin/ folder where 644 after setting this to 744 it was solved.

For those who have the same error: Try first to run ./vendor/team-reflex/discord-php/bin/dca-v0.1.0-linux-amd64 -i test.mp3 and see what's the output.