Update discord_richpresence.py

This commit is contained in:
brostos 2023-07-21 11:48:51 +03:00 committed by GitHub
parent 9f82a400fd
commit 250bc1f84f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -730,10 +730,10 @@ class DiscordRP(babase.Plugin):
if not ANDROID and self.rpc_thread.is_discord_running():
self.rpc_thread.rpc.close()
self.rpc_thread.should_close = True
else:
raise NotImplementedError("This function does not work on android")
# stupid code
# ws.close()
# else:
# raise NotImplementedError("This function does not work on android")
# # stupid code
# # ws.close()
# def on_app_pause(self) -> None:
# ws.close()
@ -915,4 +915,4 @@ class DiscordRP(babase.Plugin):
)
if ANDROID and Path(f"{getcwd()}/token.txt").exists():
self.rpc_thread.presence()