Skip to content

An example Riddles game to show the implementation of discoIPC Python package.

Notifications You must be signed in to change notification settings

iamtraction/riddles-rich-presence

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Riddles

Riddles is a simple text-based game to implement Discord's rich presence using the discoIPC Python package.

Installation

  1. Clone this repository.

    git clone -b master -d 1 https://github.com/k3rn31p4nic/riddles-rich-presence
  2. Install required dependencies.

    # This will install all required dependencies including discoIPC
    pip install -r requirements.txt

Usage

  1. Create a Discord Application at Discord Developers site.
    Create App

  2. Enable Rich Presence.
    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.
    Add Rich Presence Assets

  4. Edit the config.ini file and add your Client ID, that you got from Discord Appliations page, to the client_id field in the file (obviously replacing the default one).
    App Details
    Example

    [CLIENT]
    client_id=425989775451750401
  5. Run the game:

    python riddles.py

    Riddles with Rich Presence! What else do you want? xD

More Info...

About

An example Riddles game to show the implementation of discoIPC Python package.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages