add discord part

This commit is contained in:
2025-12-09 20:26:36 +01:00
parent 81a3981d18
commit fc013af993
2 changed files with 31 additions and 2 deletions

9
discord.py Normal file
View File

@@ -0,0 +1,9 @@
from pypresence import Presence
import os
def get_rpc():
app_id = os.getenv('DISCORD_APP_ID')
RPC = Presence(app_id)
RPC.connect()
return RPC