Trypo error
This commit is contained in:
parent
7057252420
commit
0b97dbdad7
24
README.fr.md
24
README.fr.md
@ -1,24 +0,0 @@
|
|||||||
# botamusique
|
|
||||||
[English Version](README.md)
|
|
||||||
|
|
||||||
======
|
|
||||||
|
|
||||||
##FR:
|
|
||||||
|
|
||||||
Botamusique est un bot pour mumble qui a pour vocation de permettre aux utillisateurs d'écouter de la musique ensemble via sa sortie son.
|
|
||||||
Les fonctionnalités prévues sont celles qu'on attend d'un lecteur de musique classique (Musique suivante, précédente, aléatoire, lecture d'un repertoire)
|
|
||||||
Pour ceci il va chercher les musiques téléchargées par les utillisateurs dans un dossier.
|
|
||||||
|
|
||||||
#### Commandes
|
|
||||||
- [ ] list
|
|
||||||
- [ ] play
|
|
||||||
- [ ] playfolder
|
|
||||||
- [ ] list
|
|
||||||
- [ ] random
|
|
||||||
- [ ] volume
|
|
||||||
- [ ] skip
|
|
||||||
- [ ] stop
|
|
||||||
- [ ] joinme
|
|
||||||
|
|
||||||
#### Futur proche
|
|
||||||
A terme une interface web sera ajoutée pour faciliter son utillisation.
|
|
@ -24,12 +24,10 @@ The main folder need to be declare into the config (with a '/' at the end)
|
|||||||
commands (don't forget the sudo mode):
|
commands (don't forget the sudo mode):
|
||||||
```
|
```
|
||||||
apt-get install python3-pip
|
apt-get install python3-pip
|
||||||
pip3 install opuslib
|
|
||||||
pip3 install protobuf
|
|
||||||
pip3 install flask
|
|
||||||
apt-get install ffmpeg
|
apt-get install ffmpeg
|
||||||
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
|
||||||
chmod +x ./mumbleBot.py
|
chmod +x ./mumbleBot.py
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ volume = 0.1
|
|||||||
admin = Azlux;AzMobile
|
admin = Azlux;AzMobile
|
||||||
music_folder = /home/dmichel/botamusique/music/
|
music_folder = /home/dmichel/botamusique/music/
|
||||||
tmp_folder = /tmp/
|
tmp_folder = /tmp/
|
||||||
web_interace = False
|
web_interface = False
|
||||||
is_web_proxified = True
|
is_web_proxified = True
|
||||||
|
|
||||||
[command]
|
[command]
|
||||||
|
@ -73,7 +73,7 @@ class MumbleBot:
|
|||||||
self.nb_exit = 0
|
self.nb_exit = 0
|
||||||
self.thread = None
|
self.thread = None
|
||||||
|
|
||||||
if args.web_interace:
|
if self.config.getboolean("bot", "web_interface"):
|
||||||
interface.init_proxy()
|
interface.init_proxy()
|
||||||
t = threading.Thread(target=start_web_interface)
|
t = threading.Thread(target=start_web_interface)
|
||||||
t.daemon = True
|
t.daemon = True
|
||||||
@ -241,9 +241,8 @@ class MumbleBot:
|
|||||||
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
|
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
|
||||||
for i in range(2):
|
for i in range(2):
|
||||||
try:
|
try:
|
||||||
info_dict = ydl.extract_info(url, download=False)
|
info_dict = ydl.extract_info(url)
|
||||||
video_title = info_dict['title']
|
video_title = info_dict['title']
|
||||||
ydl.download([url])
|
|
||||||
except youtube_dl.utils.DownloadError:
|
except youtube_dl.utils.DownloadError:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
|
3
requirements.txt
Normal file
3
requirements.txt
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
opuslib==2.0.0
|
||||||
|
protobuf==3.4.0
|
||||||
|
flask
|
Loading…
x
Reference in New Issue
Block a user