Python SDK for kaiheila.cn API
Project description
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!
Project details
Release history Release notifications | RSS feed
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 khl.py-0.3.17.tar.gz.
File metadata
- Download URL: khl.py-0.3.17.tar.gz
- Upload date:
- Size: 41.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da87736e9f178bab3bb45aede1494bef08328913898b31368d656d51667a5ded
|
|
| MD5 |
77817de64a84acc0ccb17ae4ed951910
|
|
| BLAKE2b-256 |
8001b7d4e5683746a73e374c74fbd531916ab56c723870b4d9c827f31167e7a1
|
File details
Details for the file khl.py-0.3.17-py3-none-any.whl.
File metadata
- Download URL: khl.py-0.3.17-py3-none-any.whl
- Upload date:
- Size: 55.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8a00d7d994ef4345a830c30c74b33693cac1a390ba0774f7ca497734774de18
|
|
| MD5 |
02ea1e76a85d4a124bc9b348f9b1456e
|
|
| BLAKE2b-256 |
7d09a769ba7c369318bc0f05bb06b7cf7654de10abe4e9702ae94ce59aa946a6
|