Skip to main content

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


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)

Uploaded Source

Built Distribution

Dippy.core-0.0.1a2-py3-none-any.whl (40.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page