Skip to main content

🚀 A fast, flexible and lightweight Discord API wrapper for Python.

Project description

krema

Krema

A fast, flexible and lightweight Discord API wrapper for Python.

Installation

Unikorn

unikorn add kremayard krema -no-confirmation

Pip

pip install krema

Frameworks

  • Kommand: Command framework for Krema.
  • Klash: Slash command framework for Krema.

Example Ping-Pong Bot

from unikorn import krema 
# if you use pip, replace with:
# import krema

client = krema.Client(
    intents=krema.types.Intents().All()
)

@client.event()
async def message_create(message):
    if message.author.bot: return

    if message.content.startswith("!ping"):
        await message.reply(
            content=":ping_pong: Pong!"
        )

client.start("client token", bot=True)

License

This project is licensed under MIT license.

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

krema-1.2.0.tar.gz (24.7 kB view hashes)

Uploaded Source

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