Skip to content

Instantly share code, notes, and snippets.

@jb3
Last active February 2, 2020 13:38
Show Gist options
  • Save jb3/97dc1367bddb3250387dba464b191485 to your computer and use it in GitHub Desktop.
Save jb3/97dc1367bddb3250387dba464b191485 to your computer and use it in GitHub Desktop.
from pypresence import Presence
import time
client_id = "503540314506657792"
rpc = Presence(client_id)
rpc.connect()
data = {
"large_image": "smiley",
"large_text": "Hello yes",
"small_text": "darud sadnstorms",
"details": "smoooooooth tunes are playing",
"state": "playing"
}
while True:
rpc.update(**data)
time.sleep(15)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment