Skip to main content

A Python wrapper for the lolka bot API (discord.py-compatible fork)

Project description

Fork of discord.py (MIT License, © 2015-present Rapptz).

lolka.py (imported as import lolka) is a Python wrapper for the lolka bot API. It targets lolka by default — no manual REST/Gateway overrides needed — decodes lolka snowflakes, and resolves lolka CDN asset URLs. See LICENSE for licensing (the original MIT copyright is retained).

Installing

Python 3.8 or higher is required

# Linux/macOS
python3 -m pip install -U lolka.py

# Windows
py -3 -m pip install -U lolka.py

Quick Example

import lolka

class MyClient(lolka.Client):
    async def on_ready(self):
        print('Logged on as', self.user)

    async def on_message(self, message):
        if message.author == self.user:
            return

        if message.content == 'ping':
            await message.channel.send('pong')

intents = lolka.Intents.default()
intents.message_content = True
client = MyClient(intents=intents)
client.run('token')

Bot Example

import lolka
from lolka.ext import commands

intents = lolka.Intents.default()
intents.message_content = True
bot = commands.Bot(command_prefix='>', intents=intents)

@bot.command()
async def ping(ctx):
    await ctx.send('pong')

bot.run('token')

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

lolka_py-0.1.0.tar.gz (622.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lolka_py-0.1.0-py3-none-any.whl (747.1 kB view details)

Uploaded Python 3

File details

Details for the file lolka_py-0.1.0.tar.gz.

File metadata

  • Download URL: lolka_py-0.1.0.tar.gz
  • Upload date:
  • Size: 622.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for lolka_py-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e3264af7c60c16aed2051b32be3c31b8f3768ea75cc08ee61a4a3e21b13c5249
MD5 db3e06055c374c289f070e5311c8ad01
BLAKE2b-256 5bc08b9758ac131eb98de43bb3d530ae38a49d543fec4e16e79790da4254aaff

See more details on using hashes here.

Provenance

The following attestation bundles were made for lolka_py-0.1.0.tar.gz:

Publisher: release.yml on Lolka-App/lolka.py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lolka_py-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: lolka_py-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 747.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for lolka_py-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5a5cfb542d64d5d6559ed1b4e2bfd6eaf03494eb3149ceada7fc180a0ba5e8e9
MD5 5a6d2e019a7326c03e8f1addd18a2589
BLAKE2b-256 b854440d118314a0fdde4365516b08932929db2376a61ac5affafe86ac74c845

See more details on using hashes here.

Provenance

The following attestation bundles were made for lolka_py-0.1.0-py3-none-any.whl:

Publisher: release.yml on Lolka-App/lolka.py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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