{"id":19348768,"url":"https://github.com/raitonoberu/realmusicbot","last_synced_at":"2025-04-23T06:30:41.193Z","repository":{"id":49972258,"uuid":"275112700","full_name":"raitonoberu/realmusicbot","owner":"raitonoberu","description":"Your own Telegram bot for playing music from YouTube.","archived":false,"fork":false,"pushed_at":"2023-10-13T07:53:03.000Z","size":1211,"stargazers_count":10,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-02T09:22:02.903Z","etag":null,"topics":["bot","mpv","playback","youtube"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raitonoberu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-26T08:50:32.000Z","updated_at":"2024-09-26T12:40:49.000Z","dependencies_parsed_at":"2022-09-09T22:41:33.526Z","dependency_job_id":null,"html_url":"https://github.com/raitonoberu/realmusicbot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raitonoberu%2Frealmusicbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raitonoberu%2Frealmusicbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raitonoberu%2Frealmusicbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raitonoberu%2Frealmusicbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raitonoberu","download_url":"https://codeload.github.com/raitonoberu/realmusicbot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250384641,"owners_count":21421762,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","mpv","playback","youtube"],"created_at":"2024-11-10T04:23:01.744Z","updated_at":"2025-04-23T06:30:40.525Z","avatar_url":"https://github.com/raitonoberu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e🎶 Real Music Bot 2.1 🎶\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n    Control your speakers with Telegram and play music from YouTube Music\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"screenshots/searching2.png?raw=true\" width=\"200\" /\u003e\n\u003c/p\u003e\n\n## What is it?\n\nIf you've ever used Discord, you've probably heard of music bots that play music for you. All you had to do was just type \"**-p \\\u003ctrack_name\\\u003e**\" to listen to your favorite song. I also liked it, so I made the **real** one!\u003cbr\u003e\nThis script works as a service and allows you to play music on speakers from YouTube Music and control playback using Telegram. It uses an awesome [MPV](https://github.com/mpv-player/mpv) media player as a backend.\n\n**To be clear**, this is not a regular music bot. It plays music directly on the connected speakers, not in voice chat or audio messages.\n\n## Features\n\n- ### Search for music simply by sending a title...\n\n\u003cdetails\u003e\n    \u003csummary\u003eScreenshot\u003c/summary\u003e\n    \u003cimg src=\"screenshots/searching.png?raw=true\" width=\"300\"/\u003e\n\u003c/details\u003e\n\n- ### ...or link to a YouTube video\n\n\u003cdetails\u003e\n    \u003csummary\u003eScreenshot\u003c/summary\u003e\n    \u003cimg src=\"screenshots/yt.png?raw=true\" width=\"300\"/\u003e\n\u003c/details\u003e\n\n- ### Use the search provided by @vid bot\n\n\u003cdetails\u003e\n    \u003csummary\u003eScreenshot\u003c/summary\u003e\n    \u003cimg src=\"screenshots/vid.png?raw=true\" width=\"300\"/\u003e\n\u003c/details\u003e\n\n- ### Fully working queue\n\n\u003cdetails\u003e\n    \u003csummary\u003eScreenshot\u003c/summary\u003e\n    \u003cimg src=\"screenshots/queue.png?raw=true\" width=\"300\"/\u003e\n\u003c/details\u003e\n\n- ### Turn on your favorite radio\n\n\u003cdetails\u003e\n    \u003csummary\u003eScreenshot\u003c/summary\u003e\n    \u003cimg src=\"screenshots/radio.png?raw=true\" width=\"300\"/\u003e\n\u003c/details\u003e\n\n- ### Search for song lyrics\n\n\u003cdetails\u003e\n    \u003csummary\u003eScreenshot\u003c/summary\u003e\n    \u003cimg src=\"screenshots/lyrics.png?raw=true\" width=\"300\"/\u003e\n\u003c/details\u003e\n\n- ### Protect the bot from unauthorized users\n\n\u003cdetails\u003e\n    \u003csummary\u003eScreenshot\u003c/summary\u003e\n    \u003cimg src=\"screenshots/privatization.png?raw=true\" width=\"300\"/\u003e\n\u003c/details\u003e\n\nList of available commands:\n\n- **/s** - Skip the currently playing song\n- **/stop** - Stop playback and clear the queue\n- **/q** - Show current queue\n- **/p** - Pause playback\n- **/v** - Show current volume\n- **/v +10** - Change current volume\n- **/v 50** - Set volume\n- **/r** \u003cstation\u003e - Search for radio\n- **/l** - Search for lyrics\n\n\n## Installation\n\nMake sure you have [Python 3.7+ installed](https://www.python.org/downloads/)\n\n### 1. Install packages\n\n##### Linux\n\n    $ sudo apt install mpv\n    $ pip3 install https://github.com/raitonoberu/realmusicbot/archive/master.zip\n\n##### Windows\n\n    pip install https://github.com/raitonoberu/realmusicbot/archive/master.zip\n\n### 2. Change settings\n\nBefore running, you must configure your bot by editing the file **~/.config/realmusicbot.ini**:\n\n##### Linux\n\n    $ nano ~/.config/realmusicbot.ini\n\n##### Windows\n\n    notepad %USERPROFILE%\\.config\\realmusicbot.ini\n\n#### 2.1 Set your bot token\n\n[How do I create a bot?](https://core.telegram.org/bots#6-botfather)\n\n    TOKEN=yourtoken\n\n#### 2.2 Configure additional features (optional)\n\n    # Whether to process messages simultaneously\n    THREADED=true\n\n    # Select YouTube ITAG code\n    # - 251 is the highest quality\n    # - More here: https://gist.github.com/sidneys/7095afe4da4ae58694d128b1034e01e2\n    ITAG=251\n\n    # Bot privatization (HIGHLY RECOMMENDED)\n    # - Get your User ID using tg @userinfobot and add it to the list\n    # - https://t.me/userinfobot\n    # - If you leave it empty, everyone can use the bot\n    # - example: 123456789,987641234\n    ALLOWED_IDS=\n\n### 3. Run your bot\n\nThere are two ways to run Real Music Bot. It's recommended to run it in a terminal first to make sure that it works.\n\n#### 3.1 Running in a terminal\n\n    $ realmusicbot\n\nPress **Ctrl+C** to close.\n\n#### 3.2 Running as a service (Linux only)\n\n    $ systemctl --user start realmusicbot\n    $ systemctl --user enable realmusicbot\n\nCheck logs:\n\n    $ journalctl | grep realmusicbot\n\n## Uninstallation\n\n##### Linux\n\n    $ systemctl --user stop realmusicbot\n    $ systemctl --user disable realmusicbot\n    $ sudo rm ~/.config/systemd/user/realmusicbot.service\n    $ sudo rm -r ~/.config/realmusicbot.ini\n    $ pip3 uninstall realmusicbot\n\n##### Windows\n\n    where realmusicbot | python -c \"import os;os.remove(os.path.dirname(input())+r'\\mpv-2.dll')\"\n    del /f \"%USERPROFILE%\\.config\\realmusicbot.ini\"\n    pip uninstall realmusicbot\n\n## License\n\nGPLv3, see [LICENSE](./LICENSE) for additional info.\n\n## TODO\n\n* Localization\n* Passing params to MPV\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraitonoberu%2Frealmusicbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraitonoberu%2Frealmusicbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraitonoberu%2Frealmusicbot/lists"}