Updated to v2.6
Temporary fix for Python 3.10 RPC issue. (https://github.com/profitrollgame/AutoZoom/issues/1)
This commit is contained in:
parent
fe0a1a5202
commit
504b748789
6
rpc.py
6
rpc.py
@ -13,7 +13,13 @@ from pypresence import Presence
|
|||||||
|
|
||||||
client_id = '800049969960058882'
|
client_id = '800049969960058882'
|
||||||
|
|
||||||
|
try:
|
||||||
RPC = Presence(client_id,pipe=0)
|
RPC = Presence(client_id,pipe=0)
|
||||||
|
except Exception as exp:
|
||||||
|
appendLog(f'Discord RPC failed to initialize status due to {exp}')
|
||||||
|
if getConfig("debug"):
|
||||||
|
print(f'{RESET}Модуль {BRED}Discord RPC {RESET}не смог подключиться.\nВозможно, ваш {CYAN}Discord {RESET}не открыт.\nОшибка: {BRED}{exp}{RESET}')
|
||||||
|
time.sleep(1)
|
||||||
|
|
||||||
connected = False
|
connected = False
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user