Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/szastupov/musicbot
Telegram Music Catalog Bot
https://github.com/szastupov/musicbot
bot mongo music python telegram-bot
Last synced: 5 days ago
JSON representation
Telegram Music Catalog Bot
- Host: GitHub
- URL: https://github.com/szastupov/musicbot
- Owner: szastupov
- Created: 2015-11-29T19:48:36.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-07-29T06:09:17.000Z (6 months ago)
- Last Synced: 2024-12-30T04:08:23.369Z (12 days ago)
- Topics: bot, mongo, music, python, telegram-bot
- Language: Python
- Size: 24.4 KB
- Stars: 302
- Watchers: 13
- Forks: 55
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Music Catalog Bot
=================This Telegram bot maintains a user generated catalog of music.
How does it work? You simply send audio file (from Telegram Desktop, Web or OSX) to the bot and it's added to the public catalog. All tracks are indexed and available for everyone from any Telegram client.
![Screenshot](http://i.imgur.com/vRNxnDS.png)
![Screenshot](http://i.imgur.com/qmvht6v.png)### Technical side
The bot doesn't store any media, instead it only keeps track metadata, while the files are hosted on Telegram servers.
It's written in Python 3, powered by [aiotg](https://github.com/szastupov/aiotg) framework and uses [MongoDB](https://www.mongodb.com) for index.
You can easily run your own instance with [docker-compose](1):
```yml
musicbot:
image: szastupov/musicbot
restart: always
links:
- mongo
environment:
- BOT_NAME=MusicCatalogBot
- API_TOKEN=Telegram API token
- BOTAN_TOKEN=Optional botan token
- MONGO_HOST=mongo
mongo:
image: mongo
restart: always
```Or directly with docker:
```
$ docker pull szastupov/musicbot
$ docker run -e "API_TOKEN=YOUR_TOKEN" \
-e "BOT_NAME=BotPlaygroundBot" \
-e "MONGO_HOST=mongo" \
--link mongo:mongo \
szastupov/musicbot
```Or you can run it manually, the requirements are specified in requirements.txt, you know the rest.
[1]: https://docs.docker.com/compose/