-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Can only update every 15 seconds | ||
import pypresence | ||
|
||
CLIENT_ID = '1215345125002059836' | ||
|
||
|
||
class RichPresence(pypresence.Presence): | ||
def __init__(self): | ||
super().__init__(client_id=CLIENT_ID) | ||
try: | ||
self.connect() | ||
self.default_state() | ||
except Exception as e: | ||
print(f"Failed to connect to Discord: {e}") | ||
|
||
def default_state(self): | ||
self.update(state="Placeholder", | ||
details="Placeholder details", large_image="tomato") | ||
|
||
def begin_pomodoro(self): | ||
pass | ||
|
||
def begin_break(self): | ||
pass |