Coder Social home page Coder Social logo

dontbanmeplz / dippy.core Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zechcodes/dippy.core

0.0 1.0 0.0 134 KB

A bare-bones Discord gateway client that can be used to build Python bot frameworks for Discord.

License: MIT License

Python 100.00%

dippy.core's Introduction

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

dippy.core's People

Contributors

dontbanmeplz avatar zechcodes avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.