khl.py
Python SDK for kookapp.cn(aka kaiheila.cn) API
Minimal Example
from khl import Bot, Message
# init Bot
bot = Bot(token='xxxxxxxxxxxxxxxxxxxxxxxxx')
# register command, send `/hello` in channel to invoke
@bot.command(name='hello')
async def world(msg: Message):
await msg.reply('world!')
# everything done, go ahead now!
bot.run()
# now invite the bot to a server, and send '/hello' in any channel
# (remember to grant the bot with read & send permissions)
INSTALL
requirement: Python >= 3.6.8
pip install khl.py
Documentation
if your question has not been listed yet, please create a issue or join our talk channel for help
CONTRIBUTING
welcome! we are glad to get help from community hands, and don't be shy to show your code, we can improve it together even if it's not perfect right now
if there is any bug/perf/feature request, we are willing to deal with your issue/pull request!
Release files for khl.py 0.3.17
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| khl.py-0.3.17.tar.gz | 41.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| khl.py-0.3.17-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 97.0 kB
Release files / khl.py-0.3.17.tar.gz
| Download URL | khl.py-0.3.17.tar.gz |
|---|---|
| Size | 41.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
da87736e9f178bab3bb45aede1494bef08328913898b31368d656d51667a5ded
|
|
BLAKE2b-256 checksum How to use checksums |
8001b7d4e5683746a73e374c74fbd531916ab56c723870b4d9c827f31167e7a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Release files / khl.py-0.3.17-py3-none-any.whl
| Download URL | khl.py-0.3.17-py3-none-any.whl |
|---|---|
| Size | 55.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f8a00d7d994ef4345a830c30c74b33693cac1a390ba0774f7ca497734774de18
|
|
BLAKE2b-256 checksum How to use checksums |
7d09a769ba7c369318bc0f05bb06b7cf7654de10abe4e9702ae94ce59aa946a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|