Riddles is a simple text-based game to implement Discord's rich presence using the discoIPC Python package.
-
Clone this repository.
git clone -b master -d 1 https://github.com/k3rn31p4nic/riddles-rich-presence
-
Install required dependencies.
# This will install all required dependencies including discoIPC pip install -r requirements.txt
-
Create a Discord Application at Discord Developers site.
-
Add your required assets in the Rich Presence Assets section.
You need to add at least 3 image assets, namelyriddles_icon
,level_1
andlevel_2
, for this example to work.
Or you can modify theriddles.py
file to add your own asset keys.
-
Edit the
config.ini
file and add your Client ID, that you got from Discord Appliations page, to theclient_id
field in the file (obviously replacing the default one).
Example[CLIENT] client_id=425989775451750401
-
Run the game:
python riddles.py