Skip to content
This repository has been archived by the owner on Oct 10, 2021. It is now read-only.
/ py-rpc Public archive

Python wrapper for Discord Rich Presence.

Notifications You must be signed in to change notification settings

zspri/py-rpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dead Project

I would recommend using PyPresence. It is a maintained and functional Discord RPC library written for use in Python projects, as this one is currently outdated.

PyRPC

A library for connecting Discord Rich Presence to Python.

I actually don't know what I'm doing and this project isn't finished. pls help

How to Use

# import library
import pyrpc
import asyncio

# initialize client
c = pyrpc.RpcClient("app id here", "app secret here")

# you can get your application id
# and secret from your applications
# page --
# https://discordapp.com/developers/applications/me

# authenticate w/ rpc server (results in error)
async def my_coroutine():
    c.authenticate()

    # change rich presence (not implemented)
    c.update_presence(title="Overwatch", state="Competitive | 1 - 3", details="3:05 left", large_img=pyrpc.Image(key="numbaniMap", text="on Numbani", large=True), small_img=pyrpc.Image(key="mercyHero", text="Playing as Mercy", large=False))

# run it
asyncio.get_event_loop().run_until_complete(my_coroutine())

About

Python wrapper for Discord Rich Presence.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages