2019-07-27 17:59:25 +02:00
2019-06-04 02:23:28 +02:00
2019-06-16 00:12:04 +02:00
2018-11-17 17:17:40 +01:00
2019-07-27 17:34:11 +02:00
2019-01-13 19:55:37 +01:00
2019-01-13 22:31:08 +01:00
2018-11-17 17:17:40 +01:00
2016-12-12 21:57:20 +01:00
2019-07-27 17:59:25 +02:00
2018-12-08 23:46:31 +01:00
2019-07-27 17:50:31 +02:00
2019-07-27 17:50:31 +02:00
2019-06-04 02:23:28 +02:00
2019-06-04 11:01:38 +02:00
2019-06-04 11:20:08 +02:00
2018-11-21 00:22:06 +01:00

botamusique

Botamusique is a mumble bot which goal is to allow users to listen music together with its audio output. Predicted functionalities will be ones you could expect from any classic music player.

Bot the can play :

  • Radio url
  • Youtube/Soundcloud URL (everything supported by youtube-dl)
  • Local folder (disabled, I need to work on the web interface)

Menu

  1. Web Interface
  2. Installation
  3. Update
  4. Generate a certificate
  5. Starting the bot
  6. Custom commands
  7. Contributors

Web interface

  • Disabled by default. It's working but ugly (I'm not a web developer).

You need to create a folder for all your music. Organize your music by subfolder. The main folder needs to be declared in the config (with a '/' at the end) You can enable the web interface into the configuration.ini file.

Installation

  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 on my raspberry.

To Install botamusique (stable and build-in auto-update):

curl -Lo botamusique.tar.gz https://azlux.fr/botamusique/sources.tar.gz
tar -xzf botamusique.tar.gz
cd botamusique
python3 -m venv venv
venv/bin/pip install wheel
venv/bin/pip install -r requirements.txt

For the master version, you can use Git installation commands (no build-in auto-update allowed):

apt install python3-venv ffmpeg libjpeg-dev zlibc zlib1g zlib1g-dev
git clone --recurse-submodules https://github.com/azlux/botamusique.git
cd botamusique
python3 -m venv venv
venv/bin/pip install wheel
venv/bin/pip install -r requirements.txt

Update

If using the recommanded install, you can send to the bot !update(command by default)

If using git, you need to make the update manually:

git pull --all
git submodule update
venv/bin/pip install --upgrade -r requirements.txt

(Optional) Generate a certificate

$ openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout botamusique.pem -out botamusique.pem -subj "/CN=botamusique"

Starting the bot

$ venv/bin/python mumbleBot.py -s HOST -u BOTNAME -P PASSWORD -p PORT -c CHANNEL -C /path/to/botamusique.pem

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)

If you want information about autoStart and auto-Restart the bot, you can have help on the wiki.

Custom commands

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.

you have the section :

  • server : configuration about the server and bot name. This is overrided by the ./mumbleBot.py parameters.
  • bot : basic configuration of the bot : comment, folder, volume at start ....
  • webinterface : basic configuration about the interface (disabled by default)
  • command : you can customize the command you want for each action (if you put help = helpme , the bot will response to !helpme )
  • radio : here you can have a list of default radio ( I can play a jazz radio with the command !radio jazz)
  • strings : you can customize all string the bot can say.
  • debug : option to active ffmpeg or pymumble debug. (Can be very verbose)

Contributors

If you want to participate, You're welcome to fork and pull requests Fix et new features.

The following people joined the collaborators for a faster development, big thanks:

  • @slipenbois
  • @mertkutay

Feel free to ask me if you want to help activelly without using pull requests.

Description
Fork of botamusique
Readme MIT 5.1 MiB
Languages
Python 100%