from pypresence import Presence import os def get_rpc(): app_id = os.getenv('DISCORD_APP_ID') RPC = Presence(app_id) RPC.connect() return RPC