make discord presence id a constant

This commit is contained in:
csd4ni3l
2025-05-01 19:11:07 +02:00
parent eec51649cc
commit 6f05b113dc
3 changed files with 6 additions and 5 deletions

View File

@@ -2,7 +2,7 @@ import copy, pypresence, json, os
import arcade, arcade.gui
from utils.constants import button_style, dropdown_style, slider_style, settings
from utils.constants import button_style, dropdown_style, slider_style, settings, discord_presence_id
from utils.utils import FakePyPresence
from utils.preload import button_texture, button_hovered_texture
@@ -169,7 +169,7 @@ class Settings(arcade.gui.UIView):
self.pypresence_client.close()
del self.pypresence_client
try:
self.pypresence_client = pypresence.Presence(1365949409254441000)
self.pypresence_client = pypresence.Presence(discord_presence_id)
self.pypresence_client.connect()
self.pypresence_client.update(state='In Settings', details='Modifying Settings', start=start_time)
self.pypresence_client.start_time = start_time