Skip to content
Mathijs de Gouw edited this page Aug 20, 2017 · 2 revisions

Debian Jessie or Stretch

Some information may not be applicable to older versions of Debian.

This guide assumes that you have knowledge of Debian's command line.

1: Dependencies

The bot requires other software installed on your Debian machine. You should run the following commands in Debian's console in order.

sudo apt-get install git libopus-dev libffi-dev libsodium-dev -y
sudo apt-get install build-essential libncursesw5-dev libgdbm-dev libc6-dev zlib1g-dev libsqlite3-dev tk-dev libssl-dev openssl -y

If you are using Debian Jessie, you also need to install the backported ffmpeg version. First, ensure that you have added backports to your sources.list file. Click here for more information on how to do this. Then, run this command:

sudo apt-get -t jessie-backports install ffmpeg x264 -y

1.a: Python

If you are using Debian Stretch, Python 3.5 is available from official repositories. You can therefore install it like so:

sudo apt-get install python3.5 -y

If you are using Debian Jessie, you will need to follow these instructions for installing Python 3.5 with pyenv. We do not recommend building it from source and installing it manually, see here for an explanation as to why.

2. Clone

Now that the system dependencies out of the way, run the following commands to install the bot in your home directory and install the Python dependencies required:

cd ~
git clone https://github.com/mdegouw/MusicBot.git MusicBot -b master
cd MusicBot

# If you are using Debian Jessie with pyenv
sudo -H python -m pip install --upgrade -r requirements.txt

# If you are using Debian Stretch
sudo -H python3.5 -m pip install --upgrade -r requirements.txt

3: Configure

At this point you should create a bot account and add it to your server.

Inside the bot's folder is another folder called config. Open it, and then open the example_options.ini file. This is the file containing the bot's settings. All options are explained in the file. Make sure you save the file as options.ini after editing. If you need help, read the configuration page.

4: Start

You can start your bot by running this command:

# If you are using Debian Jessie with pyenv
python run.py

# If you are using Debian Stretch
python3.5 run.py

Clone this wiki locally