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.1.tar.gz (622.4 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.1-py3-none-any.whl (747.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lolka_py-0.1.1.tar.gz
  • Upload date:
  • Size: 622.4 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.1.tar.gz
Algorithm Hash digest
SHA256 eaf5638b73c1fb55b39f26744ff3a335d7d92bb36d7886104cce692c8d4647e9
MD5 f7a6a3d35aed6501d940c328b6867499
BLAKE2b-256 bdeb0619184dcc960f8b5578c92b7fbc580d8d01192650cfef7d42eb551c6e73

See more details on using hashes here.

Provenance

The following attestation bundles were made for lolka_py-0.1.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: lolka_py-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7e519ace7659720c7f12054ddb81537fa91a50a1c78387c8125c8b9f8bc6ef79
MD5 742a065b1a9ffb48c2f4b3b7ba22ebfb
BLAKE2b-256 8a95109cabec8b39705416290baa2ec8944983cf00ed67f023bc02dc7154d5ad

See more details on using hashes here.

Provenance

The following attestation bundles were made for lolka_py-0.1.1-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