8000 GitHub - captainexpo/YTMusicStatus
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

captainexpo/YTMusicStatus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YT Music Discord & Slack Integration

Easily integrate YT Music with Discord and Slack using this repository, which includes both a browser extension and a Python script.


Features

Discord Integration

Discord

Slack Integration

Slack


Installation

1. Clone the Repository

git clone "https://github.com/Captainexpo-1/YTMusicDiscordIntegration"

2. Install the Browser Extension

  • Supported Browser: Firefox

  • Steps:

    1. Navigate to about:debugging#/runtime/this-firefox in Firefox.
    2. Click on "Load Temporary Add-on".
    3. Select the manifest.json file.
  • Verification:
    Open YT Music, play a song, and click the extension icon. A popup should display the current song information.

3. Set Up the .env File

  • Copy the example file:
    cp .env.example .env
  • Fill in the required environment variables in .env.
    • To disable Slack integration, set ENABLE_SLACK=0.
    • No changes are needed if only Discord integration is required.

4. Run the Script

python3 ./app/main.py

Using the API

When the extension is active and a YT Music tab is open, a WebSocket server starts on port 54545.

Payloads

  1. Current Song Information

    {
            "event": "song",
            "title": "string",
            "progress": {
                    "current": "int",
                    "total": "int"
            },
            "channel": "string",
            "url": "string"
    }
  2. Close Event

    {
            "event": "close"
    }

The script in app/main.py listens to the WebSocket and sends the current song information to Discord and Slack (if enabled).


License

This project is licensed under the MIT License. See the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0