]> git.0d.be Git - botaradio.git/blob - README.md
New radio-browser commands added
[botaradio.git] / README.md
1 # botamusique
2
3 Botamusique is a mumble bot which goal is to allow users to listen music together with its audio output.
4 Predicted functionalities will be ones you could expect from any classic music player.
5
6 Bot the can play :
7 - Radio url
8 - Youtube/Soundcloud URL (everything supported by youtube-dl)
9 - Local folder (disabled, I need to work on the web interface)
10
11 -----
12 ## Menu
13 1. [Web Interface](#web-interface)
14 2. [Installation](#installation)
15 3. [Update](#udpate)
16 4. [Generate a certificate](#optional-generate-a-certificate)
17 5. [Starting the bot](#starting-the-bot)
18 6. [Custom commands](#custom-commands)
19 7. [Contributors](#contributors)
20
21
22 ### Web interface
23 * Disabled by default. It's working but ugly (I'm not a web developer).
24
25 You need to create a folder for all your music. Organize your music by subfolder.
26 The main folder needs to be declared in the config (with a '/' at the end)
27 You can enable the web interface into the configuration.ini file.
28
29 ### Installation
30 1. You need python 3 with opuslib and protobuf (look at the requirement of pymumble)
31 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.
32
33 To Install botamusique (stable and build-in auto-update):
34 ```
35 curl -Lo botamusique.tar.gz https://azlux.fr/botamusique/sources.tar.gz
36 tar -xzf botamusique.tar.gz
37 cd botamusique
38 python3 -m venv venv
39 venv/bin/pip install wheel
40 venv/bin/pip install -r requirements.txt
41 ```
42
43 For the master version, you can use Git installation commands (no build-in auto-update allowed):
44 ```
45 apt install python3-venv ffmpeg libjpeg-dev zlibc zlib1g zlib1g-dev
46 git clone --recurse-submodules https://github.com/azlux/botamusique.git
47 cd botamusique
48 python3 -m venv venv
49 venv/bin/pip install wheel
50 venv/bin/pip install -r requirements.txt
51 ```
52
53 ### Update
54 If using the recommanded install, you can send to the bot `!update`(command by default)
55
56 If using git, you need to make the update manually:
57 ```
58 git pull --all
59 git submodule update
60 venv/bin/pip install --upgrade -r requirements.txt
61 ```
62
63
64 ### (Optional) Generate a certificate
65 `$ openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout botamusique.pem -out botamusique.pem -subj "/CN=botamusique"`
66
67 ### Starting the bot
68 `$ venv/bin/python mumbleBot.py -s HOST -u BOTNAME -P PASSWORD -p PORT -c CHANNEL -C /path/to/botamusique.pem`
69
70 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)
71
72 If you want information about autoStart and auto-Restart the bot, [you can have help on the wiki.](https://github.com/azlux/botamusique/wiki/AutoStart---AutoRestart)
73
74 ### Custom commands
75 You can copy the file `configuration.default.ini` to `configuration.ini` and customize all variable. Everything can be change but don't remove the default file.
76
77 you have the section :
78 - server : configuration about the server and bot name. This is overrided by the `./mumbleBot.py` parameters.
79 - bot : basic configuration of the bot : comment, folder, volume at start ....
80 - webinterface : basic configuration about the interface (disabled by default)
81 - command : you can customize the command you want for each action (if you put `help = helpme` , the bot will response to `!helpme` )
82 - radio : here you can have a list of default radio ( I can play a jazz radio with the command `!radio jazz`)
83 - rbquery : search http://www.radio-browser.info API for listed radio stations - eg: `!rbquery nora`
84 - rbplay : Play a specific radio station by ID (from rbquery) - eg: `!rbplay 96748`
85 - strings : you can customize all string the bot can say.
86 - debug : option to active ffmpeg or pymumble debug. (Can be very verbose)
87
88 ### Contributors
89 If you want to participate, You're welcome to fork and pull requests Fix et new features.
90
91 The following people joined the collaborators for a faster development, big thanks:
92 - @slipenbois
93 - @mertkutay
94
95 Feel free to ask me if you want to help activelly without using pull requests.