Discord ipc client.
Project description
discord-ext-ipc
Example Client
import discord
from discord.ext import ipc
client = discord.Client(intents=discord.Intents.all())
ipc_client = ipc.Client(client, "TopSecretKey")
@client.event
async def on_ready():
async with ipc_client:
await ipc_client.connect("ws://localhost/ipc")
@client.event
async def on_ipc_connect():
print("ipc connected")
@client.event
async def on_ipc_close():
print("Ipc closed")
@ipc_client.listen("ready")
async def ipc_ready():
print("ready")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
discord-ext-ipcs-0.0.3.tar.gz
(4.7 kB
view hashes)
Built Distribution
Close
Hashes for discord_ext_ipcs-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dffb9bdaf55e8e1b30e878c20f73f52d3abc42f73e302dd815c0e9a493ddd4aa |
|
MD5 | 181c294abd7935e8420049c63262f99e |
|
BLAKE2b-256 | 3f77fe019e70d7b40164c3da11fa007617af5cfa22a225a628ebaac3f2b0f687 |