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.1a1.tar.gz
(5.8 kB
view hashes)
Built Distribution
Close
Hashes for Dippy.core-0.0.1a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71959c71ed436a7e5e364c5b48ed4faf9743074634429821b7c5c49628d9840f |
|
MD5 | bed5182db6709d6f8b0f047a04dd65f1 |
|
BLAKE2b-256 | 53bbbd96291e5d077b46b093a0e407e47b104615de859cbcc7286cdac77fa295 |