museofficial / muse

🎧 a self-hosted midwestern Discord music bot that doesn't suck
MIT License
888 stars 235 forks source link

Streaming Option Not Working #972

Open CameronMunroe opened 1 year ago

CameronMunroe commented 1 year ago

What's happening? Streaming doesn't seem to be working with twitch or youtube.

Logs

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

I set the following enviornement variables along with the typical ones.

      - name: DISCORD_TOKEN
        value: "***"
      - name: YOUTUBE_API_KEY
        value: "***"
      - name: SPOTIFY_CLIENT_ID
        value: "***"
      - name: SPOTIFY_CLIENT_SECRET
        value: "***"
      - name: CACHE_LIMIT
        value: "12GB"
      - name: BOT_STATUS
        value: "online"
      - name: BOT_ACTIVITY_TYPE
        value: "STREAMING"
      - name: BOT_ACTIVITY_URL
        value: "https://www.youtube.com/watch?v=MsSrIlOi81o"
      - name: BOT_ACTIVITY
        value: "NCS"

Runtime I'm running Muse:

Versions

codetheweb commented 1 year ago

Logs are missing. Muse does not stream from Twitch.

Likely related to https://github.com/codetheweb/muse/issues/970.

CameronMunroe commented 1 year ago

Huh! Then why are you showing it using twitch?

https://github.com/codetheweb/muse/blob/master/README.md?plain=1#L128

codetheweb commented 1 year ago

The activity URL is what's displayed in the bot's profile when you click on it. It's not streamed from.

CameronMunroe commented 1 year ago

So long story short, Muse doesn't support the ability to play music from a music stream.

codetheweb commented 1 year ago

No, Muse does not support streaming from Twitch.

CameronMunroe commented 1 year ago

Got it, does it support streaming from Youtube at all?

The front page shows that it supports streaming from both youtube or twitch.

codetheweb commented 1 year ago

Can you please point to where it says Twitch is supported? Live Youtube streams are supported.

CameronMunroe commented 1 year ago

It seems you indicate this issue here.

I also had tried using a Youtube stream, as shown in my original post, and that wasn't working either.

No logs were generated beyond the normal "connecting to discord" and "youtube-dl" installation.

codetheweb commented 1 year ago

I'm sorry for the confusion, BOT_ACTIVITY_URL is what's shown on the bot profile. Not the stream source.

You have to use the /play command.