Skip to content

Latest commit

 

History

History
63 lines (49 loc) · 1.63 KB

README.md

File metadata and controls

63 lines (49 loc) · 1.63 KB

discord-custom-activity

Custom Activity for users on Discord

Installation

  1. Download or clone this repository.

  2. Install all requirements

    pip install -r requirements.txt

Usage

This is how it will look -

  1. Go to Discord Developer's site to create a new application.

  2. Click on New Application.

  3. Give a name for your activity.

  4. Copy the client ID

  5. Paste the client ID in config.ini file.

    [CLIENT]
    client_id=759023045418680320
    
  6. You can upload image assets under Rich Presence -> Art Assets.

  7. Edit base_activity from app.py to your own custom text and images. Check Rich Presence -> Visualizer to see how the images work.

    base_activity = {
       'details': 'Custom details',
       'state' : 'Custom state',
       'assets': {
           'large_image': 'image_name',
           'large_text': 'Image text',
           'small_image': 'small_image_name',
           'small_text': 'Small image text'
       },
       'party': {
           'size': [1, 5]
       }
    }
  8. Run the program

    python app.py

Notes

Read the Wiki for discoIPC to see the available classes and methods and know how to use them.

Acknowledgments

Thanks to k3rn31p4nic for his discoIPC library.