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
app_id = 'app id' # Application ID (cannot int)
rpc = DiscordRPC.RPC.Set_ID(app_id=app_id)
while True:
rpc.set_activity(
state="up to you",
details="up to you",
timestamp=rpc.timestamp(),
large_text="Competitive",
small_text="Radiant",
large_image="Valorant",
small_image="Radiant_logo"
)
time.sleep(600) # to update the PC, recommended: every 10 minutes or 600 seconds
Other
Plan
- RPC Button
Added button feature to RPC
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-1.2.tar.gz
(8.4 kB
view hashes)
Built Distribution
Close
Hashes for discord_rpc-1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f71ab5e9b852f91141d8821efd67ed9e431b75b6b3e235de84b4206e1b965f0a |
|
MD5 | bd2fa14e6792c0fc2ce5e1021d7badd0 |
|
BLAKE2b-256 | 691d0a4241653c9d590ecacb3cf828302f0cfbf768c6d70a863befee3c85ed67 |