https://github.com/iamtraction/riddles-rich-presence
An example Riddles game to show the implementation of discoIPC Python package.
https://github.com/iamtraction/riddles-rich-presence
discoipc discord-rich-presence rich-presence riddle-game text-game
Last synced: 3 months ago
JSON representation
An example Riddles game to show the implementation of discoIPC Python package.
- Host: GitHub
- URL: https://github.com/iamtraction/riddles-rich-presence
- Owner: iamtraction
- Created: 2018-03-21T14:03:27.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-21T19:33:27.000Z (over 6 years ago)
- Last Synced: 2025-03-11T08:18:41.648Z (7 months ago)
- Topics: discoipc, discord-rich-presence, rich-presence, riddle-game, text-game
- Language: Python
- Size: 5.86 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Riddles
Riddles is a simple text-based game to implement Discord's rich presence
using the [discoIPC](https://github.com/k3rn31p4nic/riddles-rich-presence)
Python package.## Installation
1. Clone this repository.
```bash
git clone -b master -d 1 https://github.com/k3rn31p4nic/riddles-rich-presence
```2. Install required dependencies.
```bash
# This will install all required dependencies including discoIPC
pip install -r requirements.txt
```## Usage
1. Create a Discord Application at [Discord Developers](https://discordapp.com/developers/applications/me) site.
2. Enable **Rich Presence**.
3. Add your required assets in the **Rich Presence Assets** section.
You need to add at least 3 image assets, namely `riddles_icon`, `level_1`
and `level_2`, for this example to work.
*Or you can modify the `riddles.py` file to add your own asset keys.*
4. Edit the `config.ini` file and add your Client ID, that you got from
[Discord Appliations](https://discordapp.com/developers/applications/me)
page, to the `client_id` field in the file (obviously replacing the default
one).

**Example**
```ini
[CLIENT]
client_id=425989775451750401
```5. Run the game:
```bash
python riddles.py
```
## More Info...
* [Discord Rich Presence](https://discordapp.com/rich-presence)
* [Discord Developers Documentation](https://discordapp.com/developers)
* [discoIPC Library](https://github.com/k3rn31p4nic/riddles-rich-presence)