From 0c2ad2a55a441d496f5badbe8a361a0cda458f15 Mon Sep 17 00:00:00 2001 From: Parker Date: Fri, 19 Jul 2024 00:25:36 -0500 Subject: [PATCH] Reference Apple Music changes --- README.md | 16 +++++++++++++++- code/cogs/news.py | 5 +++++ docker-compose.yaml | 1 + 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d0ab795..a1b8da6 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,8 @@ Guava is a Discord music bot with support for multiple different music and video streaming platforms. Guava is a part of >200 Discord servers and currently supports these services: -- Spotify (Links) +- Apple Music +- Spotify - SoundCloud - Bandcamp - Deezer @@ -71,11 +72,24 @@ FEEDBACK_CHANNEL_ID | `CHANNEL ID`: Discord channel for feedback messages to be BUG_CHANNEL_ID | `CHANNEL ID`: Discord channel for bug messages to be sent to | **OPTIONAL** SPOTIFY_CLIENT_ID | Client ID from Spotify Developer account | **REQUIRED** SPOTIFY_CLIENT_SECRET | Client Secret from Spotify Developer account | **REQUIRED** +APPLE_MUSIC_KEY | See the `note` below to get a media api key without a developer account | **REQUIRED** OPENAI_API_KEY | API Key from OpenAI for autoplay recommendations | **REQUIRED** HOST | Host address for your Lavalink node | **REQUIRED** PORT | Port for your Lavalink node | **REQUIRED** PASSWORD | Password to authenticate into the Lavalink node | **REQUIRED** +
+
+NOTE: Media API Key + +1. Go to https://music.apple.com +2. Open the debuger tab in dev tools +3. Regex this `"(?(ey[\w-]+)\.([\w-]+)\.([\w-]+))"` +4. Copy the entire token from the JS file + +
+
+ # Lavalink Information As previously state, a Lavalink node running at least `v4` with the LavaSrc plugin is required. Due to the plugin requirement, it is unlikely that you will be able to use a free/public Lavalink node. diff --git a/code/cogs/news.py b/code/cogs/news.py index d7c25d2..5c0c2e7 100644 --- a/code/cogs/news.py +++ b/code/cogs/news.py @@ -18,6 +18,11 @@ class News(commands.Cog): color=BOT_COLOR, ) + embed.add_field( + name="**Apple Music Support!**", + value="> You can now play music through Apple Music links. Just paste the link and the bot will do the rest!", + ) + embed.add_field( name="**Autoplay Update**", value="> Autoplay is now much more stable after a revamp of the previous system. If you experienced short outages recently, this was due to the update. Thank you for your patience!", diff --git a/docker-compose.yaml b/docker-compose.yaml index 69953c1..0446ada 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -10,6 +10,7 @@ services: - BUG_CHANNEL_ID= - SPOTIFY_CLIENT_ID= - SPOTIFY_CLIENT_SECRET= + - APPLE_MUSIC_KEY= - OPENAI_API_KEY= - LAVALINK_HOST= - LAVALINK_PORT=