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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lolka_py-0.2.0.tar.gz.
File metadata
- Download URL: lolka_py-0.2.0.tar.gz
- Upload date:
- Size: 624.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79b3619ff309140c2865c4ffce4251924fd7d0afc4215cf13a18594cab0b3151
|
|
| MD5 |
efaa597a309f71762a0e6ec4a90055a7
|
|
| BLAKE2b-256 |
a9d26b6b8842b1afc250beeaf5e5702e812f411a5f131ca1ab6aa07a3ab774c1
|
Provenance
The following attestation bundles were made for lolka_py-0.2.0.tar.gz:
Publisher:
release.yml on Lolka-App/lolka.py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lolka_py-0.2.0.tar.gz -
Subject digest:
79b3619ff309140c2865c4ffce4251924fd7d0afc4215cf13a18594cab0b3151 - Sigstore transparency entry: 2030500732
- Sigstore integration time:
-
Permalink:
Lolka-App/lolka.py@392a2d3c45afa029d4a866f3ef7fd30985314c87 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/Lolka-App
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@392a2d3c45afa029d4a866f3ef7fd30985314c87 -
Trigger Event:
push
-
Statement type:
File details
Details for the file lolka_py-0.2.0-py3-none-any.whl.
File metadata
- Download URL: lolka_py-0.2.0-py3-none-any.whl
- Upload date:
- Size: 749.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76fb1d3c0549d4ea1098ad8053e58363669461f4b26a14f16f348a97f2fba596
|
|
| MD5 |
8569782cebad92390a422ae8997db133
|
|
| BLAKE2b-256 |
a700b3f51fd6433161adedeeb142587e95ae73d4eb1fb2f3f834fcc8301d64cd
|
Provenance
The following attestation bundles were made for lolka_py-0.2.0-py3-none-any.whl:
Publisher:
release.yml on Lolka-App/lolka.py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lolka_py-0.2.0-py3-none-any.whl -
Subject digest:
76fb1d3c0549d4ea1098ad8053e58363669461f4b26a14f16f348a97f2fba596 - Sigstore transparency entry: 2030500911
- Sigstore integration time:
-
Permalink:
Lolka-App/lolka.py@392a2d3c45afa029d4a866f3ef7fd30985314c87 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/Lolka-App
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@392a2d3c45afa029d4a866f3ef7fd30985314c87 -
Trigger Event:
push
-
Statement type: