From 659c2dbaaa7f836488e4208f10242498af4243c0 Mon Sep 17 00:00:00 2001 From: Jamon Date: Sun, 11 Aug 2024 17:43:00 +1200 Subject: [PATCH] Fix for discord alerts on song changes --- game_server.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/game_server.py b/game_server.py index 1663764..5d92f91 100644 --- a/game_server.py +++ b/game_server.py @@ -1632,6 +1632,11 @@ class MusicPlayer: self.current_song_index = (self.current_song_index + 1) % len(self.playlist) self.start_time = current_time self.load_current_song() + new_song = self.get_current_song() + + # Send Discord alert for automatic song change + send_discord_alert(f"🎵 Now playing: {new_song}") + return True # Indicates that the song has changed return False