#๐ hey i want to automatically pause and play when the song of my friend changes how do i achieve tha
45 messages ยท Page 1 of 1 (latest)
@round shore
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
spotify has listening parties for this purpose
could anybody test a game i made [not compiled]
but you could use a bot and monitor on_member_change
my buddy dont have premium //
make your own help post

!d discord.Member.activity
property activity```
Returns the primary activity the user is currently doing. Could be `None` if no activity is being done.
Note
Due to a Discord API limitation, this may be `None` if the user is listening to a song on Spotify with a title longer than 128 characters. See [GH-1738](https://github.com/Rapptz/discord.py/issues/1738) for more information...
oh then i honestly couldnt tell you
the discord route would be easy
!d discord.Spotify
class discord.Spotify```
Represents a Spotify listening activity from Discord. This is a special case of [`Activity`](https://discordpy.readthedocs.io/en/stable/api.html#discord.Activity) that makes it easier to work with the Spotify integration...
this exists
i mean she stays offline on discord sometimes ๐ญ
yeah that makes things a bit iffy
would not pyautogui something like that do this?
not sure if this is against rule 5 but you could look into "alternative" / modified spotify clients that would let you do something like this
i mean it would but are you always going to have that screen up?
but i was asking like how pyautogui will detect if the name of the song changes right there
at some point you might as well just get premium with a student discount
but again i dont think pyautogui would be the best way about this
sure you could check one position but that might change, disappear, etc
you might as well just look into their API and see if they let you have websockets that can keep you updated when a profile's current song changes
ig its too much for that i do have premium though
but i was searching for a solution when she goes offline
but lol ig i have to wait till she comes back online again
i can just listen along here lol
on what platform
discord
like rn i m listening along
you could look into spotify's API docs
but besides that, you'd have a hard time making your own solution
and that would also be breaking TOS
yeah lol
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.