https://github.com/kenny2github/discord-party
Handle Discord Rich Presence party logic with ease.
https://github.com/kenny2github/discord-party
Last synced: about 1 year ago
JSON representation
Handle Discord Rich Presence party logic with ease.
- Host: GitHub
- URL: https://github.com/kenny2github/discord-party
- Owner: Kenny2github
- License: mit
- Created: 2019-06-17T11:14:25.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-18T08:09:32.000Z (almost 7 years ago)
- Last Synced: 2025-02-13T07:46:40.008Z (about 1 year ago)
- Language: Python
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
Handle Discord Rich Presence party logic with ease.
Example Usage
=============
.. code-block:: python
from discord_party import Party
async def main():
RPC = Party(client_id)
await RPC.start()
RPC.state = 'Looking for Players'
RPC.id = #get a party ID your way
RPC.join = #party secret, cannot be party ID
RPC.size = 1
RPC.max = 4
await RPC #send these changes to Discord
def meanwhile():
#update the game window, this is called once every v seconds
secret = await RPC.wait_for_player_join(meanwhile, delay=0.5)
#join someone else's party with secret
#...