/krema

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

Primary LanguagePythonMIT LicenseMIT

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.