Skip to main content

Discord API Wrapper for Python! (Not Finished.)

Project description

Hyaline is Not Released! Do NOT try to install.

Hyaline Discord API Wrapper.

WARNING: Hyaline is not easy to use library. Created for someone who wants to use pure discord API. Also that means almost everything in under your control.

Hyaline is a discord api wrapper for python. hyaline is created for discord developers and hyaline makes everything harder.

Check ./docs folder for documentation and more informations about hyaline. Documentation is not finished. You can use python dir() function for get all functions, attrs in the object. Also use help() for get help about a function / class.

Example Ping-Pong Discord Bot:

# Import the library and intent helper.
import hyaline
from hyaline.helpers.Intents import ALL

# Setup session configurations.
session = hyaline.Session({
    "TOKEN": "token",
    "INTENTS": ALL
})

# Ready Event
async def on_ready(_packet):
    print(f"Bot Started with name: {session.client.username}.")

# Message Event
async def on_message(msg):
    if not msg.author.id == session.client.id:
        await msg.reply({
            "content": ":ping_pong: Pong!"
        })

# Configure the events.
# Also you can configure multiple event.
session.event("MESSAGE_CREATE", on_message)
session.event("READY", on_ready)

# Start the session.
session.start()

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

hyaline-0.0.1.tar.gz (2.3 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page