Fix for discord alerts on song changes
This commit is contained in:
parent
5cf6f8766e
commit
659c2dbaaa
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user