venv instructions

This commit is contained in:
Lartza
2018-06-18 13:51:40 +03:00
parent b747aff075
commit 4c02c29ec7

View File

@ -20,19 +20,19 @@ The main folder needs to be declared in the config (with a '/' at the end)
1. You need python 3 with opuslib and protobuf (look at the requirement of pymumble) 1. You need python 3 with opuslib and protobuf (look at the requirement of pymumble)
2. The Bot uses ffmpeg, so you know what you have to do if ffmpeg isn't in your package manager. I personally use [this repository](http://repozytorium.mati75.eu/) on my raspberry. 2. The Bot uses ffmpeg, so you know what you have to do if ffmpeg isn't in your package manager. I personally use [this repository](http://repozytorium.mati75.eu/) on my raspberry.
commands (don't forget the sudo mode): Example installation commands for Debian and Ubuntu:
``` ```
apt install python3-pip # apt install python3-pip python3-venv
apt install ffmpeg # apt install ffmpeg
apt install youtube-dl # apt install youtube-dl
git clone --recurse-submodules https://github.com/azlux/botamusique.git $ git clone --recurse-submodules https://github.com/azlux/botamusique.git
cd ./botamusique $ cd botamusique
pip3 install -r requirements.txt $ python -m venv venv
chmod +x ./mumbleBot.py $ venv/bin/pip install -r requirements.txt
``` ```
#### Starting the bot #### Starting the bot
`./mumbleBot.py -s HOST -u BOTNAME -P PASSWORD -p PORT -c CHANNEL` `$ venv/bin/python mumbleBot.py -s HOST -u BOTNAME -P PASSWORD -p PORT -c CHANNEL`
The bot listen to the 8181 port so you should redirect to this one in you NAT configuration to let others peoples access the web interface. (DISABLED) The bot listen to the 8181 port so you should redirect to this one in you NAT configuration to let others peoples access the web interface. (DISABLED)