r/code • • Jan 31 '22

Is it possible to code a script which closes Spotify when an ad plays and reopens it immediately.

I think the way this can be done is by using the way Spotify connects to Discord to show activity. I am not very sure. Any sort of help is welcome.

11 Upvotes

2 comments sorted by

5

u/trixfyy Jan 31 '22

There was a script at github to mute spotify when an ad played and unmute afterwards but you have to search for it as I didnt save it.

2

u/Anmol_22 Jan 31 '22

Oh thanks, ill check for it... Perhaps id be able to close and reopen the app..