Telegram bot for controlling Mopidy music server written in reactive PHP.
2.4K
Telegram bot for controlling Mopidy music server written in reactive PHP.
/favou?rites/i in playlist name will be merged into one)docker pull 421p/mophpidy
ARM is also supported (Raspberry PI and such)
docker pull 421p/mophpidy:arm32v7
Docker Compose example:
# docker-compose.yml
version: '3'
services:
bot:
image: 421p/mophpidy
restart: always
volumes:
- './data:/app/data' # for data persistence
environment:
MOPIDY_URI: 'ws://mopidyhost:6680/mopidy/ws/'
TELEGRAM_TOKEN: 'TELEGRAM_BOT_TOKEN'
BOT_USERNAME: '@TELEGRAM_BOT_USERNAME'
ADMIN: '11223344' # partially supports multiple users '111222333, 14224124'
As you can see you have to provide 4 environment variables:
For the first installation you have to create a database by running doctrine command.
docker-compose run bot doctrine orm:sc:cr
.env file with 4 required environment variables# .env
MOPIDY_URI='ws://mopidyhost:6680/mopidy/ws/'
TELEGRAM_TOKEN='TELEGRAM_BOT_TOKEN'
BOT_USERNAME='@TELEGRAM_BOT_USERNAME'
ADMIN='11223344'
composer install
./doctrine orm:sc:cr
php bot.php
It's highly recommended to install event pecl extension for running bot but not required.
Content type
Image
Digest
Size
174.9 MB
Last updated
about 8 years ago
docker pull 421p/mophpidy