diff --git a/pomodorodiscord/src/richpresence.py b/pomodorodiscord/src/richpresence.py index 0dc7977..caed52b 100644 --- a/pomodorodiscord/src/richpresence.py +++ b/pomodorodiscord/src/richpresence.py @@ -1,4 +1,3 @@ -# Can only update every 15 seconds import pypresence CLIENT_ID = '1215345125002059836' @@ -7,7 +6,7 @@ class RichPresence(pypresence.Presence): def __init__(self): super().__init__(client_id=CLIENT_ID) - self.state = None + # Can only update every 15 seconds try: self.connect() self.default_state() @@ -16,12 +15,9 @@ def __init__(self): def default_state(self): self.update(state="Idling", details=None, large_image="graytomato") - self.state = "default" def running_state(self, session, start_time, end_time): self.update(state=f"Session {session}", details="Studying", start=start_time, end=end_time, large_image="tomato") - self.state = "pomodoro" def break_state(self, start_time, end_time): self.update(state="On break", details=None, start=start_time, end=end_time, large_image="greentomato") - self.state = "break"