Navigation
This tutorial shows you how to setup MumbleDJ, a Barnard based audio bot that play music from Youtube.
This tutorial was tested and written for Ubuntu 14.04 LTS (Server), though the desktop version should also work.
<source highlight=“bash”>sudo apt-get install git mercurial pkg-config libopus-dev</source>
The golang version available on Ubuntu 14.04 is too old to be used with MumbleDJ, so you need to setup the latest version: <source highlight=“bash”>wget https://storage.googleapis.com/golang/go1.3.1.linux-amd64.tar.gz</source><br /> <source highlight=“bash”>mkdir ~/go-lang && tar xvzf go1.3.1.linux-amd64.tar.gz -C ~/go-lang</source><br /> Add the go binary to your path variable (before the default path in order to override a system wide installed go environment): <source highlight=“bash”>export PATH=“$HOME/go-lang/go/bin:$PATH”</source><br /> <source highlight=“bash”>export GOROOT=$HOME/go-lang/go/</source><br /> <source highlight=“bash”></source><br />
see https://github.com/matthieugrieger/mumbledj README
type=warningThe origin MumbleDJ tries to download the m4a of a video which is not available in most cases. Instead you can clone https://github.com/natenom/mumbledj which downloads the video and extracts the audio.box_end
bla, weg …
MumbleDJ and Barnard are both written in Go so you need to setup an environment for this programming language. <source highlight=“bash”>mkdir -p $HOME/go-apps/src</source><br /> <source highlight=“bash”>export GOPATH=$HOME/go-apps/</source><br /> <source highlight=“bash”>cd $HOME/go-apps/src</source><br /> <source highlight=“bash”>git clone https://github.com/matthieugrieger/mumbledj.git</source><br /> <source highlight=“bash”>cd mumbledj</source><br /> <source highlight=“bash”>go get</source><br /> Now you can run your bot for a first test: <source highlight=“bash”>go run cmd/</source><br /> <source highlight=“bash”></source><br />