A simple Python demonstration script to display a custom game status (Rich Presence) on your Discord profile. DISCLAIMER You use this script at your own risk. The author is not responsible for any possible consequences to your Discord account. This project was created solely for educational and demonstration purposes to show developers how the Discord RPC (Rich Presence) mechanism works and how to integrate this functionality into their own applications.
- Fast connection to Discord RPC.
- Displays a custom game status ("In the game").
- Shows an elapsed time counter since the script started.
- Safely closes the connection upon exit.
- Python 3.7 or higher installed.
- Discord desktop application running on your PC (the web version is not supported).
- Clone the repository:
git clone https://github.com/kaurcev/custom-discord-status
cd custom-discord-status- Install the required library:
pip install pypresence- Run the script:
python discord_status.pyTo stop the script and disable the status, press Ctrl + C in your terminal.
The script uses a default ID for Minecraft. To display a different game or create your own custom application, follow these steps:
You can copy IDs for popular games directly from the comments in the code:
- Minecraft: 1402418491272986635
- Dota 2: 356875988589740042
- Terraria: 1402418344912752671
- GTA VI: 1445160676522856458
Paste the chosen ID into the CLIENT_ID variable in the discord_status.py file.
If you are developing your own game or want a custom status name:
- Go to the Discord Developer Portal (discord.com).
- Click the New Application button in the top right corner.
- Enter a name (this name will appear in your status after the words "Playing...").
- In the General Information tab, find the Application ID (Client ID) and copy it.
- Paste this copied ID into the CLIENT_ID variable inside discord_status.py.
- Error: "Discord is not running, not found, or running as an administrator."
- Solution: Make sure your Discord desktop client is open. If the script still shows this error, try running your terminal (command prompt) as an administrator.

