"DiscordEasyRichPresence is a script for MacOS and Linux users, for interfacing your game with a locally running Discord desktop client (Supports Buttons)"
Python 3.0 and above
clone this to your local device
git clone https://github.com/MahdeenSky/DiscordEasyRichPresence
Go to the developer portal and create an application
https://discord.com/developers/applications
Add assets(image) to your application (Name of asset is image key)
Select images and clear all fields except
PARTY ID
and JOIN SECRET
Get your client ID and fill it in the gaps in main.py
Within main.py, change the activity code according to your best fit
activity = {
"state": "Exploring Town of Beginnings", # anything you like
"details": f"Aincrad {current_floor}", # anything you like
"timestamps": {
"start": start_time
},
"assets": {
"small_text": "Online", # anything you like
"small_image": "green", # must match the image key
"large_text": "Swordsman - Level 10", # anything you like
"large_image": "default" # must match the image key
},
"buttons": [ # optional, add if you want buttons
{"label": "??? Sword Art Online ???", "url": "https://www.youtube.com/watch?v=onYSNgHbbW8&ab_channel=Gigguk"},
{"label": "*----* GITHUB *----*", "url": "https://github.com/MahdeenSky"} # label = button text, url = link to redirect on click
]
}
Make sure your Discord app is running and then run the main.py
python3 main.py
I have included the example provided inside the Example Folder, that you can run if you fill it in by recreating the app, which involves
- making an app with the name "Sword Art Online"
- adding the "default" and "green" assets
- editing the visualizer section as shown above
- placing the client ID inside the main.py script.
Finally run python3 main.py
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request