An Python wrapper for Discord RPC API
Project description
Discord RPC
An Python wrapper for Discord RPC API. Allow you to make own custom RPC
Install
- PyPI
pip install discord-rpc
Quick example
import DiscordRPC
import time
rpc = DiscordRPC.RPC.Set_ID(app_id=12345678910)
while True:
rpc.set_activity(
state="Rank : Radiant",
details="Competitive",
timestamp=rpc.timestamp()
)
time.sleep(600) # to update the PC, recommended: every 10 minutes or 600 seconds
More examples here
Other
Plan
- -
Join our Discord server here
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
discord-rpc-2.0.tar.gz
(9.1 kB
view hashes)
Built Distribution
Close
Hashes for discord_rpc-2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83d07ab7f78df59108c72c6a776a37bd60b5d8f5aeb3ba0349bea53a440fe561 |
|
MD5 | 61c1cfedd36cb28f31cb814f106d0fd2 |
|
BLAKE2b-256 | 4a9ad7702389718e82b954146b721caabac29ae9608337ff632b10603f414235 |