#๐Ÿ”’ 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)

reef sparrowBOT
#

@round shore

Python help channel opened

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.

thin ferry
#

spotify has listening parties for this purpose

amber nest
#

could anybody test a game i made [not compiled]

thin ferry
#

but you could use a bot and monitor on_member_change

round shore
#

my buddy dont have premium //

thin ferry
thin ferry
thin ferry
reef sparrowBOT
#

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...
round shore
#

nah its not related to discord

#

this is on spotify

#

kindoff spotify

#

autoclicker

thin ferry
#

the discord route would be easy

#

!d discord.Spotify

reef sparrowBOT
#

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...
thin ferry
#

this exists

round shore
#

i mean she stays offline on discord sometimes ๐Ÿ˜ญ

thin ferry
round shore
#

would not pyautogui something like that do this?

thin ferry
#

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

thin ferry
round shore
#

i m ready for that lol

#

i have two pcs

round shore
thin ferry
#

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

round shore
#

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

thin ferry
round shore
#

discord

thin ferry
#

ah

#

yeah i'd say it's probably not worth it

round shore
#

like rn i m listening along

thin ferry
#

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

round shore
#

yeah lol

reef sparrowBOT
#
Python help channel closed for inactivity

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.