mirror of
https://github.com/Benexl/FastAnime.git
synced 2025-12-05 20:40:09 -08:00
14 lines
324 B
Python
14 lines
324 B
Python
import time
|
|
|
|
from pypresence import Presence
|
|
|
|
|
|
def connect(show, episode, switch):
|
|
presence = Presence(client_id="1292070065583165512")
|
|
presence.connect()
|
|
if not switch.is_set():
|
|
presence.update(details=show, state="Watching episode " + episode)
|
|
time.sleep(10)
|
|
else:
|
|
presence.close()
|