Last active
November 23, 2024 16:44
-
-
Save Yuma-Tsushima07/4d7c5f462d808f4843ae6e3d17e83f1b to your computer and use it in GitHub Desktop.
Discord RPC Python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from pypresence import Presence | |
| import time | |
| client_id = "ID" # Id from the application developer portal | |
| RPC = Presence(client_id) | |
| RPC.connect() | |
| RPC.update(state="Text", | |
| details="Some text", | |
| large_image="Picturename", | |
| large_text="Large image text label", | |
| ) # Set the presence | |
| while 1: | |
| time.sleep(15) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment