azlux / MumbleRadioPlayer

A Mumble Music bot which plays radio stream from an URL
Mozilla Public License 2.0
23 stars 4 forks source link
bot mumble plays-radio-stream pymumble

MumbleRadioPlayer

A DEPRECATED Mumble bot that plays radio stream by URL

I've merge multiple project into botamusique

I will not update MumbleRadioPlayer ANYMORE

======

  1. How to start the bot
  2. Commands
  3. Installation
  4. Important
  5. How to help
  6. Additionnal informations
  7. TODO
  8. Credits

How to start the bot

Run the mumbleRadioPlayer.py to start the bot (don't forget the chmod +x ./mumbleRadioPlayer.py) ./mumbleRadioPlayer.py --server <server_url> --user <bot_name>

Optional parameters : --channel <default_channel> --port <port_number> --password <password> --cert <certificate>

It's in Python 3 (The python2 version is into another branch. depreciated version !)

Commands

You can change commands into the configuration file, The default is :

Installation

  1. You need python 3 with opuslib and protobuf (look at the requirement of pymumble) you will need pip3 (apt-get install python3-pip)
  2. The Bot use ffmpeg, so you know what you have to do if ffmpeg aren't in your package manager. I personally use this repository on my raspberry.

commands (don't forget the sudo mode):

apt-get install ffmpeg
git clone --recurse-submodules https://github.com/azlux/MumbleRadioPlayer.git
cd ./MumbleRadioPlayer
pip3 install -r requirements.txt
chmod +x ./mumbleRadioPlayer.py

If you really want to install pymumble independently, there are a install.sh. But think about upgrade. The Bot will work that way too.

Important

What the bot cannot do:

  1. A .pls file is NOT a stream url, it's just a text file. Take a look inside if you can found real stream url. A good url can be read by your browser natively.
  2. The configuration file is NOT UTF-8 encoded, be careful

How to help

Because, Yes, You can help.

Additionnal informations

If a command doesn't work, try to find the error, or send me the command and I will try to reproduce it. When I upgarde pymumble, the requirement can change. Reinstall the pip3 requirement if you are not sure.

The bot change is own comment with the stream name. Now working with:

TODO

=====

Credits

Pymumble comes from here. It's, for now, the current fork alive of pymumble in PYTHON 3 now \o/