-
Notifications
You must be signed in to change notification settings - Fork 0
Guide for Debian
Some information may not be applicable to older versions of Debian.
This guide assumes that you have knowledge of Debian's command line.
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 -t jessie-backports install ffmpeg x264 -y
sudo apt-get install build-essential libncursesw5-dev libgdbm-dev libc6-dev zlib1g-dev libsqlite3-dev tk-dev libssl-dev openssl -y
Debian doesn't come with the correct version of Python out of the box. We will install the correct version ourselves.
- Download this tarball and save it somewhere
Extract it:
tar -xvf Python-3.5.2.tgz
cd Python-3.5.2
Build it:
sudo ./configure
sudo make
sudo make altinstall
Python 3.5 and pip will have been installed to /usr/local/bin
now.
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/SexualRhinoceros/MusicBot.git MusicBot -b master
cd MusicBot
sudo -H pip3.5 install --upgrade -r requirements.txt
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.
You can start your bot by running this command:
python3.5 run.py