Async Discord Gateway client.
Project description
Dippy.Core
This is a bare-bones Discord gateway client that can be used to build Python bot frameworks for Discord.
Installation
pip install dippy.core
Usage
Connecting
from dippy.core import GatewayConnection, Intents
from asyncio import get_event_loop
client = GatewayConnection("YOUR.TOKEN.HERE", intents=Intents.DEFAULT | Intents.MEMBERS)
loop = get_event_loop()
loop.create_task(client.connect())
loop.run_forever()
Watching For Events
async def on_ready(event_payload):
print(event_payload.data)
client.on(on_ready, "READY")
Future
- Add models to wrap the event payload data
- Add a caching interface
- Add rate limiting
- Add methods to models for using the gateway
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
Dippy.core-0.0.1a2.tar.gz
(25.8 kB
view hashes)
Built Distribution
Close
Hashes for Dippy.core-0.0.1a2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66bfbef8778c9d3b6509a51ed0fed0226fd80364b1add6e00f79fb5cd94c745a |
|
MD5 | f40446153a1a6256c35b12e5867f78d6 |
|
BLAKE2b-256 | 8317983bddc50c0fd02c29c829ff0d11aa4dcb27954ef77b4cb14b4012d2fce0 |