Skip to content

agambajwa/discord-custom-activity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published

Languages